Skip to content

Commit

Permalink
Bump simplisafe-python to 2022.11.2 (#82943)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and frenck committed Nov 30, 2022
1 parent 688b643 commit f76e6d7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/simplisafe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _async_register_base_station(
device_registry = dr.async_get(hass)
device_registry.async_get_or_create(
config_entry_id=entry.entry_id,
identifiers={(DOMAIN, system.system_id)},
identifiers={(DOMAIN, str(system.system_id))},
manufacturer="SimpliSafe",
model=system.version,
name=system.address,
Expand Down Expand Up @@ -757,7 +757,7 @@ def __init__(
manufacturer="SimpliSafe",
model=model,
name=device_name,
via_device=(DOMAIN, system.system_id),
via_device=(DOMAIN, str(system.system_id)),
)

self._attr_unique_id = serial
Expand Down
12 changes: 9 additions & 3 deletions homeassistant/components/simplisafe/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,22 +224,28 @@ def async_update_from_rest_api(self) -> None:
self._attr_extra_state_attributes.update(
{
ATTR_ALARM_DURATION: self._system.alarm_duration,
ATTR_ALARM_VOLUME: self._system.alarm_volume.name.lower(),
ATTR_BATTERY_BACKUP_POWER_LEVEL: self._system.battery_backup_power_level,
ATTR_CHIME_VOLUME: self._system.chime_volume.name.lower(),
ATTR_ENTRY_DELAY_AWAY: self._system.entry_delay_away,
ATTR_ENTRY_DELAY_HOME: self._system.entry_delay_home,
ATTR_EXIT_DELAY_AWAY: self._system.exit_delay_away,
ATTR_EXIT_DELAY_HOME: self._system.exit_delay_home,
ATTR_GSM_STRENGTH: self._system.gsm_strength,
ATTR_LIGHT: self._system.light,
ATTR_RF_JAMMING: self._system.rf_jamming,
ATTR_VOICE_PROMPT_VOLUME: self._system.voice_prompt_volume.name.lower(),
ATTR_WALL_POWER_LEVEL: self._system.wall_power_level,
ATTR_WIFI_STRENGTH: self._system.wifi_strength,
}
)

for key, volume_prop in (
(ATTR_ALARM_VOLUME, self._system.alarm_volume),
(ATTR_CHIME_VOLUME, self._system.chime_volume),
(ATTR_VOICE_PROMPT_VOLUME, self._system.voice_prompt_volume),
):
if not volume_prop:
continue
self._attr_extra_state_attributes[key] = volume_prop.name.lower()

self._set_state_from_system_data()

@callback
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/simplisafe/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "SimpliSafe",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
"requirements": ["simplisafe-python==2022.07.1"],
"requirements": ["simplisafe-python==2022.11.2"],
"codeowners": ["@bachya"],
"iot_class": "cloud_polling",
"dhcp": [
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@ simplehound==0.3
simplepush==2.1.1

# homeassistant.components.simplisafe
simplisafe-python==2022.07.1
simplisafe-python==2022.11.2

# homeassistant.components.sisyphus
sisyphus-control==3.1.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 @@ -1559,7 +1559,7 @@ simplehound==0.3
simplepush==2.1.1

# homeassistant.components.simplisafe
simplisafe-python==2022.07.1
simplisafe-python==2022.11.2

# homeassistant.components.slack
slackclient==2.5.0
Expand Down

0 comments on commit f76e6d7

Please sign in to comment.