Closed
Description
The problem
Vacuum cleaner is failing to be recognised since 0.112
Environment
- Home Assistant Core release with the issue: 0.112 and onwards
- Last working Home Assistant Core release (if known): All versions prior to 0.112
- Operating environment (OS/Container/Supervised/Core): OS
- Integration causing this issue: Xiaomi Miio
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/vacuum.xiaomi_miio
Problem-relevant configuration.yaml
vacuum:
- platform: xiaomi_miio
host: 192.168.1.33
token: token_is_here
Traceback/Error logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 451, in _async_add_entity
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 290, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 317, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/vacuum.py", line 333, in device_state_attributes
if self.timers:
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/vacuum.py", line 284, in timers
for timer in self._timers
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/vacuum.py", line 284, in <listcomp>
for timer in self._timers
File "/usr/local/lib/python3.7/site-packages/miio/vacuumcontainers.py", line 444, in next_schedule
local_tz = timezone(self.timezone)
File "/usr/local/lib/python3.7/site-packages/pytz/__init__.py", line 163, in timezone
if zone.upper() == 'UTC':
AttributeError: 'dict' object has no attribute 'upper'