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

TemperatureHumiditySensorOutdoor' object has no attribute 'setPointTemperature' #4

Open
zeph opened this issue Nov 8, 2020 · 2 comments · May be fixed by #9
Open

TemperatureHumiditySensorOutdoor' object has no attribute 'setPointTemperature' #4

zeph opened this issue Nov 8, 2020 · 2 comments · May be fixed by #9

Comments

@zeph
Copy link

zeph commented Nov 8, 2020

casa       | Traceback (most recent call last):
casa       |   File "//./exporter.py", line 265, in collect
casa       |     self.__collect_thermostat_metrics(g.label, d)
casa       |   File "//./exporter.py", line 170, in __collect_thermostat_metrics
casa       |     if device.setPointTemperature:
casa       | AttributeError: 'TemperatureHumiditySensorOutdoor' object has no attribute 'setPointTemperature'
casa       | 
casa       | During handling of the above exception, another exception occurred:
casa       | 
casa       | Traceback (most recent call last):
casa       |   File "//./exporter.py", line 313, in <module>
casa       |     e.collect()
casa       |   File "//./exporter.py", line 275, in collect
casa       |     "collecting status from device(s) failed with: {1}".format(str(e))
casa       | IndexError: Replacement index 1 out of range for positional args tuple
casa exited with code 1

I will try to provide a patch

@auhlig
Copy link
Owner

auhlig commented Nov 10, 2020

Urks. That would be highly appreciated @zeph!

@janschwirtz
Copy link

It's the same problem with "TemperatureHumiditySensorWithoutDisplay".

hanzZzZzZ pushed a commit to hanzZzZzZ/homematicip-exporter that referenced this issue Jan 6, 2021
Make use of hasattr to see if the attribute setPointTemperature really
exists before using its value. This should fix  auhlig#4
@hanzZzZzZ hanzZzZzZ linked a pull request Jan 6, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants