fix up some docstrings
This commit is contained in:
1 parent
c0c439c549
commit
afcb0b8767
2 files changed
+16
-2
No files matched your search
@@ -13,10 +13,11 @@ SCHEDULE_TEMPORARY_HOLD = 2
|
||||
|
||||
class TestNuHeat(unittest.TestCase):
|
||||
"""Tests for NuHeat climate."""
|
||||
|
||||
# pylint: disable=protected-access, no-self-use
|
||||
|
||||
def setUp(self):
|
||||
|
||||
"""Set up test variables."""
|
||||
serial_number = "12345"
|
||||
min_away_temp = None
|
||||
temperature_unit = "F"
|
||||
@@ -68,6 +69,10 @@ class TestNuHeat(unittest.TestCase):
|
||||
"""Test name property."""
|
||||
self.assertEqual(self.thermostat.name, "Master bathroom")
|
||||
|
||||
def test_icon(self):
|
||||
"""Test name property."""
|
||||
self.assertEqual(self.thermostat.icon, "mdi:thermometer")
|
||||
|
||||
def test_temperature_unit(self):
|
||||
"""Test temperature unit."""
|
||||
self.assertEqual(self.thermostat.temperature_unit, TEMP_FAHRENHEIT)
|
||||
|
||||
Reference in new issue
Block a user