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

Notify user if arming or disarming totalconnect alarm fails #36085

Merged
merged 8 commits into from
Jun 3, 2020
Prev Previous commit
Next Next commit
Remove hass reference no longer needed
  • Loading branch information
austinmroczek committed May 29, 2020
commit 24fe176b8a875761842b126bc161b4a861d88754
5 changes: 2 additions & 3 deletions homeassistant/components/totalconnect/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ async def async_setup_entry(hass, entry, async_add_entities) -> None:

for location_id, location in client.locations.items():
location_name = location.location_name
alarms.append(TotalConnectAlarm(location_name, location_id, client, hass))
alarms.append(TotalConnectAlarm(location_name, location_id, client))

async_add_entities(alarms, True)


class TotalConnectAlarm(alarm.AlarmControlPanelEntity):
"""Represent an TotalConnect status."""

def __init__(self, name, location_id, client, hass):
def __init__(self, name, location_id, client):
"""Initialize the TotalConnect status."""
self._name = name
self._location_id = location_id
self._client = client
self._hass = hass
self._state = None
self._device_state_attributes = {}

Expand Down