Bumb python-homewizard-energy to 1.6.0 (#86255)

This commit is contained in:
Duco Sebel 2023-01-20 03:33:58 +01:00 committed by GitHub
parent afb704f607
commit 4be7b62607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View file

@ -4,7 +4,7 @@
"documentation": "https://www.home-assistant.io/integrations/homewizard",
"codeowners": ["@DCSBL"],
"dependencies": [],
"requirements": ["python-homewizard-energy==1.5.0"],
"requirements": ["python-homewizard-energy==1.6.0"],
"zeroconf": ["_hwenergy._tcp.local."],
"config_flow": true,
"quality_scale": "platinum",

View file

@ -329,11 +329,11 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
value_fn=lambda data: data.active_power_average_w,
),
HomeWizardSensorEntityDescription(
key="montly_power_peak_w",
key="monthly_power_peak_w",
name="Peak demand current month",
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
value_fn=lambda data: data.montly_power_peak_w,
value_fn=lambda data: data.monthly_power_peak_w,
),
HomeWizardSensorEntityDescription(
key="total_gas_m3",

View file

@ -2045,7 +2045,7 @@ python-gc100==1.0.3a0
python-gitlab==1.6.0
# homeassistant.components.homewizard
python-homewizard-energy==1.5.0
python-homewizard-energy==1.6.0
# homeassistant.components.hp_ilo
python-hpilo==4.3

View file

@ -1450,7 +1450,7 @@ python-forecastio==1.4.0
python-fullykiosk==0.0.12
# homeassistant.components.homewizard
python-homewizard-energy==1.5.0
python-homewizard-energy==1.6.0
# homeassistant.components.izone
python-izone==1.2.9

View file

@ -63,8 +63,8 @@ async def test_diagnostics(
"any_power_fail_count": 4,
"long_power_fail_count": 5,
"active_power_average_w": 123.0,
"montly_power_peak_w": 1111.0,
"montly_power_peak_timestamp": "2023-01-01T08:00:10",
"monthly_power_peak_w": 1111.0,
"monthly_power_peak_timestamp": "2023-01-01T08:00:10",
"total_gas_m3": 1122.333,
"gas_timestamp": "2021-03-14T11:22:33",
"gas_unique_id": REDACTED,

View file

@ -1347,7 +1347,7 @@ async def test_sensor_entity_active_power_average(
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
):
"""Test entity loads monthly power peak."""
@ -1376,7 +1376,7 @@ async def test_sensor_entity_montly_power_peak(
)
assert entry
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 state.state == "1234.456"
assert (