mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Moon translate (#15498)
* Translate moon * Create strings.moon.json * Update moon.py * Update strings.moon.json * Update test_moon.py
This commit is contained in:
committed by
Paulus Schoutsen
parent
98722e10fc
commit
058081b1f5
@@ -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, 'Waxing crescent')
|
||||
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, 'Waning gibbous')
|
||||
self.assertEqual(state.state, 'waning_gibbous')
|
||||
|
||||
Reference in New Issue
Block a user