Hello @claudegel
As you know I updated to ‘zigpy.quirks.v2’ and I am now getting this error:
2025-06-02 11:19:57.482 ERROR (SyncWorker_14) [zhaquirks] Unexpected exception importing custom quirk 'sensor'
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zhaquirks/__init__.py", line 479, in setup
spec.loader.exec_module(module)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/config/zhaquirks/sensor.py", line 231, in <module>
.sensor( # Zone status
~~~~~~^^^^^^^^^^^^^^^^
attribute_name=SinopeTechnologiesIasZoneCluster.AttributeDefs.zone_status.name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
entity_type=EntityType.DIAGNOSTIC,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
TypeError: QuirkBuilder.sensor() got an unexpected keyword argument 'suggested_display_precision'
2025-06-02 11:19:57.491 DEBUG (SyncWorker_14) [zhaquirks] Loading custom quirk module 'switch'
2025-06-02 11:19:57.496 ERROR (SyncWorker_14) [zhaquirks] Unexpected exception importing custom quirk 'switch'
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zhaquirks/__init__.py", line 479, in setup
spec.loader.exec_module(module)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/config/zhaquirks/switch.py", line 759, in <module>
.sensor( # Timer countdown
~~~~~~^^^^^^^^^^^^^^^^^^^^
attribute_name=SinopeManufacturerCluster.AttributeDefs.timer_countdown.name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
entity_type=EntityType.DIAGNOSTIC,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
TypeError: QuirkBuilder.sensor() got an unexpected keyword argument 'suggested_display_precision'
2025-06-02 11:19:57.498 DEBUG (SyncWorker_14) [zhaquirks] Loading custom quirk module 'thermostat'
2025-06-02 11:19:57.641 WARNING (SyncWorker_14) [zhaquirks] Loaded custom quirks. Please contribute them to https://github.com/zigpy/zha-device-handlers
2025-06-02 11:20:01.802 WARNING (MainThread) [zha.application.discovery] Device: 50:0b:91:40:00:06:04:4b-Sinope Technologies TH1400ZB has an entity with details: {'cluster_details': (1, 65281, <ClusterType.Server: 0>), 'entity_metadata': ZCLSensorMetadata(entity_platform=<EntityPlatform.SENSOR: 'sensor'>, entity_type=<EntityType.CONFIG: 'config'>, cluster_id=65281, endpoint_id=1, cluster_type=<ClusterType.Server: 0>, initially_disabled=False, attribute_initialized_from_cache=True, unique_id_suffix=None, translation_key='floor_limit_status', fallback_name='Floor limit status', attribute_name='floor_limit_status', attribute_converter=None, reporting_config=ReportingConfig(min_interval=10, max_interval=3600, reportable_change=1), divisor=1, multiplier=1, unit=None, device_class=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>)} that does not have an entity class mapping - unable to create entity
2025-06-02 11:20:01.807 ERROR (MainThread) [zha.application.gateway] Failed to create platform entity: <class 'zha.application.platforms.select.ZCLEnumSelectEntity'> [args=('50:0b:91:40:00:06:04:4b-1', [<zha.zigbee.cluster_handlers.ClusterHandler object at 0x7f7d3998b110>], <zha.zigbee.endpoint.Endpoint object at 0x7f7d399a3ce0>, <CustomDeviceV2 model='TH1400ZB' manuf='Sinope Technologies' nwk=0xA19F ieee=50:0b:91:40:00:06:04:4b is_initialized=True> - quirk_applied: True - quirk_or_device_class: zigpy.quirks.v2.CustomDeviceV2 - quirk_id: None), kwargs={'entity_metadata': ZCLEnumMetadata(entity_platform=<EntityPlatform.SELECT: 'select'>, entity_type=<EntityType.CONFIG: 'config'>, cluster_id=65281, endpoint_id=1, cluster_type=<ClusterType.Server: 0>, initially_disabled=False, attribute_initialized_from_cache=True, unique_id_suffix=None, translation_key='pump_protection_status', fallback_name='Pump protection status', enum=<class 'thermostat.PumpStatus'>, attribute_name='pump_protection_status', reporting_config=None)}]
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/zha/application/gateway.py", line 335, in create_platform_entities
platform_entity = platform_entity_class.create_platform_entity(
*args, **kw_args
)
File "/srv/homeassistant/lib/python3.13/site-packages/zha/application/platforms/select.py", line 201, in create_platform_entity
return cls(unique_id, cluster_handlers, endpoint, device, **kwargs)
File "/srv/homeassistant/lib/python3.13/site-packages/zha/application/platforms/select.py", line 214, in __init__
self._attr_options = [entry.name.replace("_", " ") for entry in self._enum]
^^^^^^^^^^
TypeError: 'type' object is not iterable
2025-06-02 11:20:01.889 ERROR (MainThread) [homeassistant.components.zha.helpers] Error while adding entity from entity data: EntityData(entity=<zha.application.platforms.select.ZCLEnumSelectEntity object at 0x7f7d39919950>, device_proxy=<homeassistant.components.zha.helpers.ZHADeviceProxy object at 0x7f7d3992d6d0>, group_proxy=None)
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/zha/helpers.py", line 1169, in async_add_entities
entities_to_add.append(entity_class(entity_data))
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/zha/select.py", line 55, in __init__
super().__init__(entity_data, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.13/site-packages/homeassistant/components/zha/entity.py", line 45, in __init__
meta = self.entity_data.entity.info_object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/functools.py", line 1039, in __get__
val = self.func(instance)
File "/srv/homeassistant/lib/python3.13/site-packages/zha/application/platforms/select.py", line 232, in info_object
options=self._attr_options,
^^^^^^^^^^^^^^^^^^
AttributeError: 'ZCLEnumSelectEntity' object has no attribute '_attr_options'