Skip to content

After create entity -> Controls Unavailable #1649

@Michael2222

Description

@Michael2222

Hello,

I have setup Better Thermostat and create a new Entity.

But the controlls from the entity displayed: Unavailable.

Then I have torn on the debug mode and I get this log entry:

`
This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/better_thermostat/adapters/generic.py:39
integration: Better Thermostat (documentation, issues)
First occurred: 14:43:47 (3 occurrences)
Last logged: 14:44:47

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/better_thermostat/climate.py", line 826, in startup
await init(self, trv)
File "/config/custom_components/better_thermostat/adapters/delegate.py", line 44, in init
return await self.real_trvs[entity_id]["adapter"].init(self, entity_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/better_thermostat/adapters/generic.py", line 39, in init
).state in (STATE_UNAVAILABLE, STATE_UNKNOWN, None):
^^^^^
AttributeError: 'NoneType' object has no attribute 'state'
`

Where could the error be?

Thanks!
Michael

Metadata

Metadata

Assignees

Labels

new bugincoming bug issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions