question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is this happening? TypeError: Temperature is not a number: N/A

See original GitHub issue

Can 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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
georgezhao2010commented, Aug 24, 2022

fixed in v0.3.7

0reactions
SkinnyT81commented, Aug 22, 2022

Changing to 0.0 worked for me as well. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found