Skip to content

Commit

Permalink
fix: fix bluetooth discovery logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 15, 2020
1 parent 101efd6 commit 804e1c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ async def update_devices(login_obj):
"%s: Found %s devices, %s bluetooth",
hide_email(email),
len(devices) if devices is not None else "",
len(bluetooth) if bluetooth is not None else "",
len(bluetooth.get("bluetoothStates", []))
if bluetooth is not None
else "",
)
if (devices is None or bluetooth is None) and not (
hass.data[DATA_ALEXAMEDIA]["accounts"][email]["configurator"]
Expand Down

0 comments on commit 804e1c2

Please sign in to comment.