mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Bump simplisafe-python
to 2022.11.2 (#82943)
This commit is contained in:
parent
688b643ed6
commit
f76e6d7ab3
@ -306,7 +306,7 @@ def _async_register_base_station(
|
|||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
device_registry.async_get_or_create(
|
device_registry.async_get_or_create(
|
||||||
config_entry_id=entry.entry_id,
|
config_entry_id=entry.entry_id,
|
||||||
identifiers={(DOMAIN, system.system_id)},
|
identifiers={(DOMAIN, str(system.system_id))},
|
||||||
manufacturer="SimpliSafe",
|
manufacturer="SimpliSafe",
|
||||||
model=system.version,
|
model=system.version,
|
||||||
name=system.address,
|
name=system.address,
|
||||||
@ -757,7 +757,7 @@ class SimpliSafeEntity(CoordinatorEntity):
|
|||||||
manufacturer="SimpliSafe",
|
manufacturer="SimpliSafe",
|
||||||
model=model,
|
model=model,
|
||||||
name=device_name,
|
name=device_name,
|
||||||
via_device=(DOMAIN, system.system_id),
|
via_device=(DOMAIN, str(system.system_id)),
|
||||||
)
|
)
|
||||||
|
|
||||||
self._attr_unique_id = serial
|
self._attr_unique_id = serial
|
||||||
|
@ -224,9 +224,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
|
|||||||
self._attr_extra_state_attributes.update(
|
self._attr_extra_state_attributes.update(
|
||||||
{
|
{
|
||||||
ATTR_ALARM_DURATION: self._system.alarm_duration,
|
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_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_AWAY: self._system.entry_delay_away,
|
||||||
ATTR_ENTRY_DELAY_HOME: self._system.entry_delay_home,
|
ATTR_ENTRY_DELAY_HOME: self._system.entry_delay_home,
|
||||||
ATTR_EXIT_DELAY_AWAY: self._system.exit_delay_away,
|
ATTR_EXIT_DELAY_AWAY: self._system.exit_delay_away,
|
||||||
@ -234,12 +232,20 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
|
|||||||
ATTR_GSM_STRENGTH: self._system.gsm_strength,
|
ATTR_GSM_STRENGTH: self._system.gsm_strength,
|
||||||
ATTR_LIGHT: self._system.light,
|
ATTR_LIGHT: self._system.light,
|
||||||
ATTR_RF_JAMMING: self._system.rf_jamming,
|
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_WALL_POWER_LEVEL: self._system.wall_power_level,
|
||||||
ATTR_WIFI_STRENGTH: self._system.wifi_strength,
|
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()
|
self._set_state_from_system_data()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "SimpliSafe",
|
"name": "SimpliSafe",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
||||||
"requirements": ["simplisafe-python==2022.07.1"],
|
"requirements": ["simplisafe-python==2022.11.2"],
|
||||||
"codeowners": ["@bachya"],
|
"codeowners": ["@bachya"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"dhcp": [
|
"dhcp": [
|
||||||
|
@ -2262,7 +2262,7 @@ simplehound==0.3
|
|||||||
simplepush==2.1.1
|
simplepush==2.1.1
|
||||||
|
|
||||||
# homeassistant.components.simplisafe
|
# homeassistant.components.simplisafe
|
||||||
simplisafe-python==2022.07.1
|
simplisafe-python==2022.11.2
|
||||||
|
|
||||||
# homeassistant.components.sisyphus
|
# homeassistant.components.sisyphus
|
||||||
sisyphus-control==3.1.2
|
sisyphus-control==3.1.2
|
||||||
|
@ -1559,7 +1559,7 @@ simplehound==0.3
|
|||||||
simplepush==2.1.1
|
simplepush==2.1.1
|
||||||
|
|
||||||
# homeassistant.components.simplisafe
|
# homeassistant.components.simplisafe
|
||||||
simplisafe-python==2022.07.1
|
simplisafe-python==2022.11.2
|
||||||
|
|
||||||
# homeassistant.components.slack
|
# homeassistant.components.slack
|
||||||
slackclient==2.5.0
|
slackclient==2.5.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user