Fix issue with HobbyBoard moisture meter (#40680)

pull/40689/head
epenet 2020-09-28 01:25:04 +02:00 committed by GitHub
parent 0a16ae6482
commit f71816d328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
owproxy.read(f"{device}moisture/is_leaf.{s_id}").decode()
)
if is_leaf:
sensor_key = f"wetness_{id}"
sensor_key = f"wetness_{s_id}"
sensor_id = os.path.split(os.path.split(device)[0])[1]
device_file = os.path.join(os.path.split(device)[0], sensor_value)
devs.append(