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.

Async error: AttributeError: 'WiserAwayModeTempNumber' object has no attribute '_attr_value'

See original GitHub issue

Running HA 2022.6.7 and the latest and greatest version of this integration 3.1.

The following error pops up in the logs, Away temperature used to be set to 16 C, now it cannot read it.

2022-07-10 12:24:32 ERROR (MainThread) [homeassistant.util.logging] Exception in async_update_state when dispatching 'WiserHeat02B2D4-HubUpdateMessage': ()
Traceback (most recent call last):
  File "/config/custom_components/wiser/number.py", line 96, in async_update_state
    await self.async_update_ha_state(True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 520, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 170, in state
    return self.value
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 175, in value
    return self._attr_value
AttributeError: 'WiserAwayModeTempNumber' object has no attribute '_attr_value'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
msp1974commented, Jul 10, 2022

OK. Now logged issue on core #74883

0reactions
msp1974commented, Jul 10, 2022

I have fixed this issue by reverting the change made in v3.1.0 in v3.1.1 - released. For now it will just have to show the deprecation warning and a future release will force an upgrade to at least 2022.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute Error while trying to make a list out of async function
I am trying to make a list from the async function in python and cannot seem to get it done. I get the...
Read more >
'AsyncEventInfo' object has no attribute 'json' · Issue ... - GitHub
[BUG] AttributeError: 'AsyncEventInfo' object has no attribute 'json' #1161 ... i get Error that said Coruntine doesn't have attribute json.
Read more >
Tweepy 'Status' object has no attribute when trying to 'tweet ...
Hey I'm not a coder but I really want to learn how to solve my errors. Could anyone please have a look what...
Read more >
Python AttributeError — What is it and how do you fix it?
AttributeError : '***' object has no attribute '***'What is an AttributeError in Python? What can you do to fix it? When does it...
Read more >
'types.SimpleNamespace' object has no attribute 'session ...
The program needs to connect to the database,It is error. it is ok async def index(): red = Red() r = await red.get_redis_pool()...
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