Clean up binary_sensor
This commit is contained in:
parent
63a27f1943
commit
4c538c718b
2 changed files with 7 additions and 10 deletions
|
@ -31,8 +31,7 @@ class TestBinarySensor(unittest.TestCase):
|
|||
def test_attributes(self):
|
||||
"""Test binary sensor attributes."""
|
||||
sensor = binary_sensor.BinarySensorDevice()
|
||||
self.assertEqual({'sensor_class': None},
|
||||
sensor.state_attributes)
|
||||
self.assertEqual({}, sensor.state_attributes)
|
||||
with mock.patch('homeassistant.components.binary_sensor.'
|
||||
'BinarySensorDevice.sensor_class',
|
||||
new='motion'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue