ignore packs not connected
This commit is contained in:
1 parent
09a9112279
commit
4d54e048c5
1 file changed
+3
-1
@@ -129,7 +129,9 @@ class DeviceReader:
|
|||||||
_LOGGER.debug("Parsed data: %s", parsed)
|
_LOGGER.debug("Parsed data: %s", parsed)
|
||||||
|
|
||||||
for key, value in parsed.items():
|
for key, value in parsed.items():
|
||||||
parsed_data.update({key + str(pack): value})
|
# Ignore likely unavailable pack data
|
||||||
|
if value != 0:
|
||||||
|
parsed_data.update({key + str(pack): value})
|
||||||
|
|
||||||
except ParseError:
|
except ParseError:
|
||||||
_LOGGER.warning("Got a parse exception...")
|
_LOGGER.warning("Got a parse exception...")
|
||||||
|
|||||||
Reference in new issue
Block a user