Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken with recent W1ThermSensor update #5

Open
aynema opened this issue Jan 28, 2022 · 0 comments
Open

Broken with recent W1ThermSensor update #5

aynema opened this issue Jan 28, 2022 · 0 comments

Comments

@aynema
Copy link

aynema commented Jan 28, 2022

It appears there's an issue now with a recent W1ThermSensor Update
AttributeError: 'W1ThermSensor' object has no attribute 'type_name'

The fix for me was to rename type_name to type.name

ie
Line 154: device_json = device_config(sensor.id, sensor.type.name)

Line 168: logger.info("Publishing sensor %s (%s), temperature: %.2f%s%s" % (sensor.id, sensor.type.name, temp, degree, unit.upper()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant