Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump sfrbox-api to 0.0.8 #104580

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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