I thought I’d post here to see if anyone else knows how to handle this. Should I be raising a bug against one of the Github repos? Any direction welcome.
- I have a Tuya Zigbee water valve _TZE204_a7sghmms under ZHA.
- I think more recently, but not sure exactly when, I’ve started getting the error below in my System Logs
HA Version:
- Installation methodHome Assistant OS
- Core2025.10.2
- Supervisor2025.10.0
- Operating System16.2
- Frontend20251001.2
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:676
integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 1:46:10 PM (2 occurrences)
Last logged: 1:46:10 PM
* Error adding entity sensor.tap_veggies_irrigation_start_time for domain sensor with platform zha
* Error adding entity sensor.tap_veggies_irrigation_end_time for domain sensor with platform zha
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 621, in state if value.tzinfo is None: ^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'tzinfo' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 676, in _async_add_entities await self._async_add_entity( entity, False, entity_registry, config_subentry_id ) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1002, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1382, in add_to_platform_finish self.async_write_ha_state() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1026, in async_write_ha_state self._async_write_ha_state() ~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1151, in _async_write_ha_state self.__async_calculate_state() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1088, in __async_calculate_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1032, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 632, in state raise ValueError( ...<2 lines>... ) from err ValueError: Invalid datetime: sensor.tap_veggies_irrigation_start_time has timestamp device class but provides state 2025-10-31 22:10:30.102777+04:00:<class 'str'> resulting in ''str' object has no attribute 'tzinfo''