Merge pull request #1343 from balloob/random-cleanup

Random cleanup
This commit is contained in:
Paulus Schoutsen committed 2016-02-20 12:16:54 -08:00
commit 6532eae3d5
14 files changed
+231 -113

No files matched your search

@@ -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'):