Bump sfrbox-api to 0.0.8 (#104580)

pull/104592/head
epenet 2023-11-27 12:30:51 +01:00 committed by GitHub
parent 855c2da64e
commit a5fd479608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 8 deletions

View File

@ -27,16 +27,28 @@ async def async_get_config_entry_diagnostics(
},
"data": {
"dsl": async_redact_data(
dataclasses.asdict(await data.system.box.dsl_get_info()), TO_REDACT
dataclasses.asdict(
await data.system.box.dsl_get_info() # type:ignore [call-overload]
),
TO_REDACT,
),
"ftth": async_redact_data(
dataclasses.asdict(await data.system.box.ftth_get_info()), TO_REDACT
dataclasses.asdict(
await data.system.box.ftth_get_info() # type:ignore [call-overload]
),
TO_REDACT,
),
"system": async_redact_data(
dataclasses.asdict(await data.system.box.system_get_info()), TO_REDACT
dataclasses.asdict(
await data.system.box.system_get_info() # type:ignore [call-overload]
),
TO_REDACT,
),
"wan": async_redact_data(
dataclasses.asdict(await data.system.box.wan_get_info()), TO_REDACT
dataclasses.asdict(
await data.system.box.wan_get_info() # type:ignore [call-overload]
),
TO_REDACT,
),
},
}

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/sfr_box",
"integration_type": "device",
"iot_class": "local_polling",
"requirements": ["sfrbox-api==0.0.6"]
"requirements": ["sfrbox-api==0.0.8"]
}

View File

@ -188,7 +188,7 @@ SYSTEM_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[SystemInfo], ...] = (
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
value_fn=lambda x: x.temperature / 1000,
value_fn=lambda x: None if x.temperature is None else x.temperature / 1000,
),
)
WAN_SENSOR_TYPES: tuple[SFRBoxSensorEntityDescription[WanInfo], ...] = (

View File

@ -2436,7 +2436,7 @@ sensorpush-ble==1.5.5
sentry-sdk==1.37.1
# homeassistant.components.sfr_box
sfrbox-api==0.0.6
sfrbox-api==0.0.8
# homeassistant.components.sharkiq
sharkiq==1.0.2

View File

@ -1815,7 +1815,7 @@ sensorpush-ble==1.5.5
sentry-sdk==1.37.1
# homeassistant.components.sfr_box
sfrbox-api==0.0.6
sfrbox-api==0.0.8
# homeassistant.components.sharkiq
sharkiq==1.0.2