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

Remove _attr_icon from existing entities #175

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions zha/application/platforms/number/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ class DanfossExerciseTriggerTime(NumberConfigurationEntity):
_attr_native_max_value: int = 1439
_attr_mode: NumberMode = NumberMode.BOX
_attr_native_unit_of_measurement: str = UnitOfTime.MINUTES
_attr_icon: str = "mdi:clock"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -937,7 +936,6 @@ class DanfossExternalMeasuredRoomSensor(ZCLTemperatureEntity):
_attr_translation_key: str = "external_temperature_sensor"
_attr_native_min_value: float = -80
_attr_native_max_value: float = 35
_attr_icon: str = "mdi:thermometer"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -953,7 +951,6 @@ class DanfossLoadRoomMean(NumberConfigurationEntity):
_attr_native_min_value: int = -8000
_attr_native_max_value: int = 2000
_attr_mode: NumberMode = NumberMode.BOX
_attr_icon: str = "mdi:scale-balance"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -968,7 +965,6 @@ class DanfossRegulationSetpointOffset(NumberConfigurationEntity):
_attr_translation_key: str = "regulation_setpoint_offset"
_attr_mode: NumberMode = NumberMode.BOX
_attr_native_unit_of_measurement: str = UnitOfTemperature.CELSIUS
_attr_icon: str = "mdi:thermostat"
_attr_native_min_value: float = -2.5
_attr_native_max_value: float = 2.5
_attr_native_step: float = 0.1
Expand Down
1 change: 0 additions & 1 deletion zha/application/platforms/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ class DanfossExerciseDayOfTheWeek(ZCLEnumSelectEntity):
_attribute_name = "exercise_day_of_week"
_attr_translation_key: str = "exercise_day_of_week"
_enum = danfoss_thermostat.DanfossExerciseDayOfTheWeekEnum
_attr_icon: str = "mdi:wrench-clock"


class DanfossOrientationEnum(types.enum8):
Expand Down
3 changes: 0 additions & 3 deletions zha/application/platforms/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,6 @@ class DanfossOpenWindowDetection(EnumSensor):
_unique_id_suffix = "open_window_detection"
_attribute_name = "open_window_detection"
_attr_translation_key: str = "open_window_detected"
_attr_icon: str = "mdi:window-open"
_enum = danfoss_thermostat.DanfossOpenWindowDetectionEnum


Expand All @@ -1725,7 +1724,6 @@ class DanfossLoadEstimate(Sensor):
_unique_id_suffix = "load_estimate"
_attribute_name = "load_estimate"
_attr_translation_key: str = "load_estimate"
_attr_icon: str = "mdi:scale-balance"
_attr_entity_category = EntityCategory.DIAGNOSTIC


Expand Down Expand Up @@ -1753,7 +1751,6 @@ class DanfossPreheatTime(Sensor):
_unique_id_suffix = "preheat_time"
_attribute_name = "preheat_time"
_attr_translation_key: str = "preheat_time"
_attr_icon: str = "mdi:radiator"
_attr_entity_registry_enabled_default = False
_attr_entity_category = EntityCategory.DIAGNOSTIC

Expand Down
5 changes: 0 additions & 5 deletions zha/application/platforms/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ class DanfossExternalOpenWindowDetected(SwitchConfigurationEntity):
_unique_id_suffix = "external_open_window_detected"
_attribute_name: str = "external_open_window_detected"
_attr_translation_key: str = "external_window_sensor"
_attr_icon: str = "mdi:window-open"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -782,7 +781,6 @@ class DanfossWindowOpenFeature(SwitchConfigurationEntity):
_unique_id_suffix = "window_open_feature"
_attribute_name: str = "window_open_feature"
_attr_translation_key: str = "use_internal_window_detection"
_attr_icon: str = "mdi:window-open"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -807,7 +805,6 @@ class DanfossRadiatorCovered(SwitchConfigurationEntity):
_unique_id_suffix = "radiator_covered"
_attribute_name: str = "radiator_covered"
_attr_translation_key: str = "prioritize_external_temperature_sensor"
_attr_icon: str = "mdi:thermometer"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -820,7 +817,6 @@ class DanfossHeatAvailable(SwitchConfigurationEntity):
_unique_id_suffix = "heat_available"
_attribute_name: str = "heat_available"
_attr_translation_key: str = "heat_available"
_attr_icon: str = "mdi:water-boiler"


@CONFIG_DIAGNOSTIC_MATCH(
Expand All @@ -833,7 +829,6 @@ class DanfossLoadBalancingEnable(SwitchConfigurationEntity):
_unique_id_suffix = "load_balancing_enable"
_attribute_name: str = "load_balancing_enable"
_attr_translation_key: str = "use_load_balancing"
_attr_icon: str = "mdi:scale-balance"


@CONFIG_DIAGNOSTIC_MATCH(
Expand Down
Loading