Darksky: Fetch summary for daily forecasts (#18031)

This commit is contained in:
Oleksii Serdiuk 2018-11-01 20:57:32 +01:00 committed by Johann Kellerman
parent c3e3f662f4
commit 31dc6832e7
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ DEPRECATED_SENSOR_TYPES = {
# Sensor types are defined like so:
# Name, si unit, us unit, ca unit, uk unit, uk2 unit
SENSOR_TYPES = {
'summary': ['Summary', None, None, None, None, None, None, []],
'summary': ['Summary', None, None, None, None, None, None, ['daily']],
'minutely_summary': ['Minutely Summary',
None, None, None, None, None, None, []],
'hourly_summary': ['Hourly Summary', None, None, None, None, None, None,

View file

@ -154,7 +154,7 @@ class TestDarkSkySetup(unittest.TestCase):
assert mock_get_forecast.called
assert mock_get_forecast.call_count == 1
assert len(self.hass.states.entity_ids()) == 7
assert len(self.hass.states.entity_ids()) == 9
state = self.hass.states.get('sensor.dark_sky_summary')
assert state is not None