mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Bumb python-homewizard-energy to 1.6.0 (#86255)
This commit is contained in:
parent
afb704f607
commit
4be7b62607
@ -4,7 +4,7 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/homewizard",
|
"documentation": "https://www.home-assistant.io/integrations/homewizard",
|
||||||
"codeowners": ["@DCSBL"],
|
"codeowners": ["@DCSBL"],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"requirements": ["python-homewizard-energy==1.5.0"],
|
"requirements": ["python-homewizard-energy==1.6.0"],
|
||||||
"zeroconf": ["_hwenergy._tcp.local."],
|
"zeroconf": ["_hwenergy._tcp.local."],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
|
@ -329,11 +329,11 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||||||
value_fn=lambda data: data.active_power_average_w,
|
value_fn=lambda data: data.active_power_average_w,
|
||||||
),
|
),
|
||||||
HomeWizardSensorEntityDescription(
|
HomeWizardSensorEntityDescription(
|
||||||
key="montly_power_peak_w",
|
key="monthly_power_peak_w",
|
||||||
name="Peak demand current month",
|
name="Peak demand current month",
|
||||||
native_unit_of_measurement=UnitOfPower.WATT,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
value_fn=lambda data: data.montly_power_peak_w,
|
value_fn=lambda data: data.monthly_power_peak_w,
|
||||||
),
|
),
|
||||||
HomeWizardSensorEntityDescription(
|
HomeWizardSensorEntityDescription(
|
||||||
key="total_gas_m3",
|
key="total_gas_m3",
|
||||||
|
@ -2045,7 +2045,7 @@ python-gc100==1.0.3a0
|
|||||||
python-gitlab==1.6.0
|
python-gitlab==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.homewizard
|
# homeassistant.components.homewizard
|
||||||
python-homewizard-energy==1.5.0
|
python-homewizard-energy==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.hp_ilo
|
# homeassistant.components.hp_ilo
|
||||||
python-hpilo==4.3
|
python-hpilo==4.3
|
||||||
|
@ -1450,7 +1450,7 @@ python-forecastio==1.4.0
|
|||||||
python-fullykiosk==0.0.12
|
python-fullykiosk==0.0.12
|
||||||
|
|
||||||
# homeassistant.components.homewizard
|
# homeassistant.components.homewizard
|
||||||
python-homewizard-energy==1.5.0
|
python-homewizard-energy==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.izone
|
# homeassistant.components.izone
|
||||||
python-izone==1.2.9
|
python-izone==1.2.9
|
||||||
|
@ -63,8 +63,8 @@ async def test_diagnostics(
|
|||||||
"any_power_fail_count": 4,
|
"any_power_fail_count": 4,
|
||||||
"long_power_fail_count": 5,
|
"long_power_fail_count": 5,
|
||||||
"active_power_average_w": 123.0,
|
"active_power_average_w": 123.0,
|
||||||
"montly_power_peak_w": 1111.0,
|
"monthly_power_peak_w": 1111.0,
|
||||||
"montly_power_peak_timestamp": "2023-01-01T08:00:10",
|
"monthly_power_peak_timestamp": "2023-01-01T08:00:10",
|
||||||
"total_gas_m3": 1122.333,
|
"total_gas_m3": 1122.333,
|
||||||
"gas_timestamp": "2021-03-14T11:22:33",
|
"gas_timestamp": "2021-03-14T11:22:33",
|
||||||
"gas_unique_id": REDACTED,
|
"gas_unique_id": REDACTED,
|
||||||
|
@ -1347,7 +1347,7 @@ async def test_sensor_entity_active_power_average(
|
|||||||
assert ATTR_ICON not in state.attributes
|
assert ATTR_ICON not in state.attributes
|
||||||
|
|
||||||
|
|
||||||
async def test_sensor_entity_montly_power_peak(
|
async def test_sensor_entity_monthly_power_peak(
|
||||||
hass, mock_config_entry_data, mock_config_entry
|
hass, mock_config_entry_data, mock_config_entry
|
||||||
):
|
):
|
||||||
"""Test entity loads monthly power peak."""
|
"""Test entity loads monthly power peak."""
|
||||||
@ -1376,7 +1376,7 @@ async def test_sensor_entity_montly_power_peak(
|
|||||||
)
|
)
|
||||||
assert entry
|
assert entry
|
||||||
assert state
|
assert state
|
||||||
assert entry.unique_id == "aabbccddeeff_montly_power_peak_w"
|
assert entry.unique_id == "aabbccddeeff_monthly_power_peak_w"
|
||||||
assert not entry.disabled
|
assert not entry.disabled
|
||||||
assert state.state == "1234.456"
|
assert state.state == "1234.456"
|
||||||
assert (
|
assert (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user