|
29 | 29 | )
|
30 | 30 | from zha.application.registries import PLATFORM_ENTITIES
|
31 | 31 | from zha.units import UnitOfMass, UnitOfTemperature, UnitOfTime, validate_unit
|
| 32 | +from zha.websocket.const import MODEL_CLASS_NAME |
32 | 33 | from zha.zigbee.cluster_handlers.const import (
|
33 | 34 | CLUSTER_HANDLER_ANALOG_OUTPUT,
|
34 | 35 | CLUSTER_HANDLER_ATTRIBUTE_UPDATED,
|
@@ -131,7 +132,7 @@ def __init__(
|
131 | 132 | def info_object(self) -> NumberEntityInfo:
|
132 | 133 | """Return a representation of the number entity."""
|
133 | 134 | return NumberEntityInfo(
|
134 |
| - **super().info_object.model_dump(exclude=["model_class_name"]), |
| 135 | + **super().info_object.model_dump(exclude=[MODEL_CLASS_NAME]), |
135 | 136 | engineering_units=self._analog_output_cluster_handler.engineering_units,
|
136 | 137 | application_type=self._analog_output_cluster_handler.application_type,
|
137 | 138 | min_value=self.native_min_value,
|
@@ -310,7 +311,7 @@ def _init_from_quirks_metadata(self, entity_metadata: NumberMetadata) -> None:
|
310 | 311 | def info_object(self) -> NumberConfigurationEntityInfo:
|
311 | 312 | """Return a representation of the number entity."""
|
312 | 313 | return NumberConfigurationEntityInfo(
|
313 |
| - **super().info_object.model_dump(exclude=["model_class_name"]), |
| 314 | + **super().info_object.model_dump(exclude=[MODEL_CLASS_NAME]), |
314 | 315 | min_value=self._attr_native_min_value,
|
315 | 316 | max_value=self._attr_native_max_value,
|
316 | 317 | step=self._attr_native_step,
|
|
0 commit comments