Skip to content

Commit

Permalink
Bump sfrbox-api to 0.0.8 (home-assistant#104580)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Nov 27, 2023
1 parent 855c2da commit a5fd479
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions homeassistant/components/sfr_box/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
},
}
2 changes: 1 addition & 1 deletion homeassistant/components/sfr_box/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/sfr_box/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class SFRBoxSensorEntityDescription(SensorEntityDescription, SFRBoxSensorMixin[_
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], ...] = (
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5fd479

Please sign in to comment.