We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2b42c commit 38144feCopy full SHA for 38144fe
inelsmqtt/devices/__init__.py
@@ -140,8 +140,9 @@ def is_available(self) -> bool:
140
bool: True/False
141
"""
142
gw = self.__mqtt.messages().get(self._Device__gw_connected_topic)
143
- if not GW_CONNECTED.get(gw):
144
- return False
+ if gw is not None:
+ if not GW_CONNECTED.get(gw):
145
+ return False
146
147
val = self.__mqtt.messages().get(self._Device__connected_topic)
148
if isinstance(val, (bytes, bytearray)):
setup.py
@@ -3,7 +3,7 @@
3
4
setup(
5
name="elkoep-mqtt",
6
- version="0.2.27",
+ version="0.2.28",
7
url="https://github.com/epdevlab/elkoep-mqtt",
8
license="MIT",
9
author="Elko EP s.r.o.",
0 commit comments