if discovery_info is None:
return
alarms = []
client = hass.data[TOTALCONNECT_DOMAIN].client
for location in client.locations:
location_id = location.get("LocationID")
name = location.get("LocationName")
alarms.append(TotalConnectAlarm(name, location_id, client))
add_entities(alarms)
class TotalConnectAlarm(alarm.AlarmControlPanel):
Represent an TotalConnect status.