xMrVizzy / philips-airpurifier

Hi.

This my first time posting.

I have no coding skills and only did the basics at school with computers but I’ve managed to install, run, and manage Home Assistant by using google, and Youtube videos.

I’ve had the custom component for my two Philips Air purifier working fine until I updated Home Assistant from 0.110 to 0.113.1.

I now get errors and only one of my purifiers will work!

Any help would be greatly appreciated!

This my system and errors.


System Health

arch armv7l
chassis embedded
dev false
docker true
docker_version 19.03.8
hassio true
host_os HassOS 4.11
installation_type Home Assistant OS
os_name Linux
os_version 4.19.127-v7l
python_version 3.8.3
supervisor 229
timezone Europe/London
version 0.113.1
virtualenv false


### Lovelace



dashboards 1
mode storage
resources 2
views 3
Logger: homeassistant
Source: helpers/entity.py:262
First occurred: 13:10:53 (20 occurrences)
Last logged: 13:20:23

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 561, in _update_entity_states
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 262, in async_update_ha_state
    raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity Bedroom Air Purifier: off>
Failed to call service fan/turn_off.
Logger: homeassistant.components.websocket_api.http.connection.2851496192
Source: components/fan/__init__.py:134
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 13:20:29 (1 occurrences)
Last logged: 13:20:29

'NoneType' object has no attribute 'async_add_job'

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 125, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1265, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1300, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 134, in async_turn_on await self.hass.async_add_job(ft.partial(self.turn_on, speed, **kwargs)) AttributeError: 'NoneType' object has no attribute 'async_add_job'

Failed to call service fan/turn_off.
'Logger: homeassistant.components.websocket_api.http.connection.2851496192
Source: helpers/entity.py:629
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 13:20:40 (1 occurrences)
Last logged: 13:20:40

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 125, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1265, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1300, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 629, in async_turn_off assert self.hass is not None AssertionError'