mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Dependency upgrade to forecast-solar 3.0.0 (#91951)
This commit is contained in:
parent
f104bba683
commit
36f90cda92
@ -45,9 +45,9 @@ async def async_get_config_entry_diagnostics(
|
|||||||
wh_datetime.isoformat(): wh_value
|
wh_datetime.isoformat(): wh_value
|
||||||
for wh_datetime, wh_value in coordinator.data.wh_days.items()
|
for wh_datetime, wh_value in coordinator.data.wh_days.items()
|
||||||
},
|
},
|
||||||
"wh_hours": {
|
"wh_period": {
|
||||||
wh_datetime.isoformat(): wh_value
|
wh_datetime.isoformat(): wh_value
|
||||||
for wh_datetime, wh_value in coordinator.data.wh_hours.items()
|
for wh_datetime, wh_value in coordinator.data.wh_period.items()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"account": {
|
"account": {
|
||||||
|
@ -16,6 +16,6 @@ async def async_get_solar_forecast(
|
|||||||
return {
|
return {
|
||||||
"wh_hours": {
|
"wh_hours": {
|
||||||
timestamp.isoformat(): val
|
timestamp.isoformat(): val
|
||||||
for timestamp, val in coordinator.data.wh_hours.items()
|
for timestamp, val in coordinator.data.wh_period.items()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["forecast_solar==2.2.0"]
|
"requirements": ["forecast_solar==3.0.0"]
|
||||||
}
|
}
|
||||||
|
@ -739,7 +739,7 @@ fnv-hash-fast==0.3.1
|
|||||||
foobot_async==1.0.0
|
foobot_async==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.forecast_solar
|
# homeassistant.components.forecast_solar
|
||||||
forecast_solar==2.2.0
|
forecast_solar==3.0.0
|
||||||
|
|
||||||
# homeassistant.components.fortios
|
# homeassistant.components.fortios
|
||||||
fortiosapi==1.0.5
|
fortiosapi==1.0.5
|
||||||
|
@ -570,7 +570,7 @@ fnv-hash-fast==0.3.1
|
|||||||
foobot_async==1.0.0
|
foobot_async==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.forecast_solar
|
# homeassistant.components.forecast_solar
|
||||||
forecast_solar==2.2.0
|
forecast_solar==3.0.0
|
||||||
|
|
||||||
# homeassistant.components.freebox
|
# homeassistant.components.freebox
|
||||||
freebox-api==1.1.0
|
freebox-api==1.1.0
|
||||||
|
@ -99,7 +99,7 @@ def mock_forecast_solar(hass) -> Generator[None, MagicMock, None]:
|
|||||||
datetime(2021, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 20,
|
datetime(2021, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 20,
|
||||||
datetime(2022, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 200,
|
datetime(2022, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 200,
|
||||||
}
|
}
|
||||||
estimate.wh_hours = {
|
estimate.wh_period = {
|
||||||
datetime(2021, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 30,
|
datetime(2021, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 30,
|
||||||
datetime(2022, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 300,
|
datetime(2022, 6, 27, 13, 0, tzinfo=dt_util.DEFAULT_TIME_ZONE): 300,
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ async def test_diagnostics(
|
|||||||
"2021-06-27T13:00:00-07:00": 20,
|
"2021-06-27T13:00:00-07:00": 20,
|
||||||
"2022-06-27T13:00:00-07:00": 200,
|
"2022-06-27T13:00:00-07:00": 200,
|
||||||
},
|
},
|
||||||
"wh_hours": {
|
"wh_period": {
|
||||||
"2021-06-27T13:00:00-07:00": 30,
|
"2021-06-27T13:00:00-07:00": 30,
|
||||||
"2022-06-27T13:00:00-07:00": 300,
|
"2022-06-27T13:00:00-07:00": 300,
|
||||||
},
|
},
|
||||||
|
@ -15,7 +15,7 @@ async def test_energy_solar_forecast(
|
|||||||
mock_forecast_solar: MagicMock,
|
mock_forecast_solar: MagicMock,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test the Forecast.Solar energy platform solar forecast."""
|
"""Test the Forecast.Solar energy platform solar forecast."""
|
||||||
mock_forecast_solar.estimate.return_value.wh_hours = {
|
mock_forecast_solar.estimate.return_value.wh_period = {
|
||||||
datetime(2021, 6, 27, 13, 0, tzinfo=timezone.utc): 12,
|
datetime(2021, 6, 27, 13, 0, tzinfo=timezone.utc): 12,
|
||||||
datetime(2021, 6, 27, 14, 0, tzinfo=timezone.utc): 8,
|
datetime(2021, 6, 27, 14, 0, tzinfo=timezone.utc): 8,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user