Skip to content

Commit

Permalink
Adding check for empty discovery info in alarm control panel Egardia. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt authored and balloob committed Mar 12, 2018
1 parent c5330a1 commit ae286a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/alarm_control_panel/egardia.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Egardia platform."""
if discovery_info is None:
return
device = EgardiaAlarm(
discovery_info['name'],
hass.data[EGARDIA_DEVICE],
Expand Down

0 comments on commit ae286a5

Please sign in to comment.