Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'x' #184

Closed
Enzokot opened this issue Nov 5, 2021 · 1 comment
Closed

AttributeError: 'NoneType' object has no attribute 'x' #184

Enzokot opened this issue Nov 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Enzokot
Copy link

Enzokot commented Nov 5, 2021

HA version: 2021.11.1

Logger error:

Logger: homeassistant
Source: custom_components/xiaomi_cloud_map_extractor/common/map_data.py:22
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 16:27:25 (3 occurrences)
Last logged: 16:28:33

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 728, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 473, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _async_write_ha_state
self.hass.states.async_set(
File "/usr/src/homeassistant/homeassistant/core.py", line 1211, in async_set
same_attr = old_state.attributes == MappingProxyType(attributes)
File "/config/custom_components/xiaomi_cloud_map_extractor/common/map_data.py", line 22, in eq
return self.x == other.x and self.y == other.y and self.a == other.a
AttributeError: 'NoneType' object has no attribute 'x'

@PiotrMachowski PiotrMachowski self-assigned this Nov 8, 2021
@PiotrMachowski PiotrMachowski added the bug Something isn't working label Nov 8, 2021
PiotrMachowski added a commit that referenced this issue Jan 3, 2022
@PiotrMachowski
Copy link
Owner

Problem should be solved in v2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants