Skip to content

Commit

Permalink
Merge pull request #47 from trvrnrth/fix-sensor-category
Browse files Browse the repository at this point in the history
Fix default category of sensors
  • Loading branch information
megakid authored Feb 17, 2024
2 parents 761e479 + 75aad35 commit 5319c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hildebrand_glow_ihd_mqtt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def all_sensors(self) -> Iterable[HildebrandGlowMqttSensor]:
class HildebrandGlowMqttSensor(SensorEntity):
"""Representation of a room sensor that is updated via MQTT."""

def __init__(self, device_id, name, icon, device_class, unit_of_measurement, state_class, func, entity_category = EntityCategory.CONFIG, ignore_zero_values = False) -> None:
def __init__(self, device_id, name, icon, device_class, unit_of_measurement, state_class, func, entity_category = None, ignore_zero_values = False) -> None:
"""Initialize the sensor."""
self._device_id = device_id
self._ignore_zero_values = ignore_zero_values
Expand Down

0 comments on commit 5319c67

Please sign in to comment.