Why is this happening? TypeError: Temperature is not a number: N/A
See original GitHub issueCan anyone explain why is this happening?
Logger: homeassistant.components.climate
Source: helpers/temperature.py:24
Integration: Климат (documentation, issues)
First occurred: 17:47:13 (2 occurrences)
Last logged: 17:47:13
Error adding entities for domain climate with platform midea_ac_lan
Error while setting up midea_ac_lan platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 673, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 270, in state_attributes
ATTR_CURRENT_TEMPERATURE: show_temp(
File "/usr/src/homeassistant/homeassistant/helpers/temperature.py", line 24, in display_temp
raise TypeError(f"Temperature is not a number: {temperature}")
TypeError: Temperature is not a number: N/A
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[BUG] TypeError: Temperature is not a number: unknown #214
I have this issue too. Not sure which temperature variable that is the problem, but i believe it is the current temperature in...
Read more >TypeError: float() argument must be a string or a number, not ...
If that happens, then your line: float(self.read('T1')). will fail, because it will try to convert None into a float , and that gives...
Read more >Python TypeError: object() takes no arguments Solution
The “TypeError: object() takes no arguments” error is raised when you do not declare a method called __init__ in a class that accepts ......
Read more >Data Types and Type Conversion
Use built-in functions to convert between integers, floating point numbers, and strings. Every value has a type. Every value in a program has...
Read more >Object.defineProperty() - JavaScript - MDN Web Docs
A TypeError is thrown when attempts are made to change non-configurable property attributes (except value and writable , if permitted), except ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

fixed in v0.3.7
Changing to 0.0 worked for me as well. Thanks!