mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Darksky: Fetch summary for daily forecasts (#18031)
This commit is contained in:
parent
c3e3f662f4
commit
31dc6832e7
@ -43,7 +43,7 @@ DEPRECATED_SENSOR_TYPES = {
|
|||||||
# Sensor types are defined like so:
|
# Sensor types are defined like so:
|
||||||
# Name, si unit, us unit, ca unit, uk unit, uk2 unit
|
# Name, si unit, us unit, ca unit, uk unit, uk2 unit
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
'summary': ['Summary', None, None, None, None, None, None, []],
|
'summary': ['Summary', None, None, None, None, None, None, ['daily']],
|
||||||
'minutely_summary': ['Minutely Summary',
|
'minutely_summary': ['Minutely Summary',
|
||||||
None, None, None, None, None, None, []],
|
None, None, None, None, None, None, []],
|
||||||
'hourly_summary': ['Hourly Summary', None, None, None, None, None, None,
|
'hourly_summary': ['Hourly Summary', None, None, None, None, None, None,
|
||||||
|
@ -154,7 +154,7 @@ class TestDarkSkySetup(unittest.TestCase):
|
|||||||
|
|
||||||
assert mock_get_forecast.called
|
assert mock_get_forecast.called
|
||||||
assert mock_get_forecast.call_count == 1
|
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')
|
state = self.hass.states.get('sensor.dark_sky_summary')
|
||||||
assert state is not None
|
assert state is not None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user