more moon states
This commit is contained in:
1 parent
20fcd1f0e2
commit
7892297240
2 files changed
+17
-9
No files matched your search
@@ -37,7 +37,7 @@ class TestMoonSensor(unittest.TestCase):
|
||||
assert setup_component(self.hass, 'sensor', config)
|
||||
|
||||
state = self.hass.states.get('sensor.moon_day1')
|
||||
self.assertEqual(state.state, 'New moon')
|
||||
self.assertEqual(state.state, 'Waxing crescent')
|
||||
|
||||
@patch('homeassistant.components.sensor.moon.dt_util.utcnow',
|
||||
return_value=DAY2)
|
||||
@@ -53,4 +53,4 @@ class TestMoonSensor(unittest.TestCase):
|
||||
assert setup_component(self.hass, 'sensor', config)
|
||||
|
||||
state = self.hass.states.get('sensor.moon_day2')
|
||||
self.assertEqual(state.state, 'Full moon')
|
||||
self.assertEqual(state.state, 'Waning gibbous')
|
||||
Reference in new issue
Block a user