zha: Strip whitespace from device names (#8306)

This commit is contained in:
Russell Cloran 2017-07-02 23:31:16 -07:00 committed by Fabian Affolter
parent 407a419c83
commit 5cba3085b4

View File

@ -273,7 +273,7 @@ def _discover_endpoint_info(endpoint):
for key, value in extra_info.items():
if isinstance(value, bytes):
try:
extra_info[key] = value.decode('ascii')
extra_info[key] = value.decode('ascii').strip()
except UnicodeDecodeError:
# Unsure what the best behaviour here is. Unset the key?
pass