Skip to content

Commit

Permalink
Fix #159
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Jul 11, 2021
1 parent 63812d8 commit 6f2fb58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/browser_mod/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def create_entity(hass, platform, deviceID, connection):
or CONFIG_DISABLE_ALL in hass.data[DOMAIN][DATA_CONFIG].get(CONFIG_DISABLE, [])
):
return None
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
adder = hass.data[DOMAIN][DATA_ADDERS].get(platform)
if not adder:
return None
entity = adder(hass, deviceID, connection, get_alias(hass, deviceID))
return entity

Expand Down

0 comments on commit 6f2fb58

Please sign in to comment.