Adjust onewire device model (#58516)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-10-27 19:19:55 +02:00 committed by GitHub
parent baaaf3d2bc
commit b85217c62e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 5 deletions

View file

@ -395,7 +395,7 @@ def get_entities(
family = device_type
elif "7E" in family:
device_sub_type = "EDS"
family = onewirehub.owproxy.read(f"{device_path}device_type").decode()
family = device_type
if family not in get_sensor_types(device_sub_type):
_LOGGER.warning(