Skip to content

Commit 747337f

Browse files
committed
fix pylint-detected bug in conditional
1 parent dd7dd7d commit 747337f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lifx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, wifi_manager, lifx_token):
4141
:param str lifx_token: LIFX API token (https://api.developer.lifx.com/docs/authentication)
4242
"""
4343
wifi_type = str(type(wifi_manager))
44-
if "ESPSPI_WiFiManager" in wifi_type or "ESPAT_WiFiManager" or "Session" in wifi_type:
44+
if "ESPSPI_WiFiManager" in wifi_type or "ESPAT_WiFiManager" in wifi_type or "Session" in wifi_type:
4545
self._wifi = wifi_manager
4646
else:
4747
raise TypeError("This library requires a WiFiManager or Session object.")

0 commit comments

Comments
 (0)