Perform some SimpliSafe code cleanup (#58867)
This commit is contained in:
parent
d024c5e698
commit
0cc4b7219f
6 changed files with 10 additions and 15 deletions
|
@ -21,7 +21,7 @@ from homeassistant.core import HomeAssistant, callback
|
|||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import SimpliSafe, SimpliSafeEntity
|
||||
from .const import DATA_CLIENT, DOMAIN, LOGGER
|
||||
from .const import DOMAIN, LOGGER
|
||||
|
||||
SUPPORTED_BATTERY_SENSOR_TYPES = [
|
||||
DeviceTypes.carbon_monoxide,
|
||||
|
@ -50,7 +50,7 @@ async def async_setup_entry(
|
|||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
"""Set up SimpliSafe binary sensors based on a config entry."""
|
||||
simplisafe = hass.data[DOMAIN][entry.entry_id][DATA_CLIENT]
|
||||
simplisafe = hass.data[DOMAIN][entry.entry_id]
|
||||
|
||||
sensors: list[BatteryBinarySensor | TriggeredBinarySensor] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue