Skip to content

Commit

Permalink
Added support for service needed flag (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotope authored Sep 19, 2022
1 parent 8ebe8ff commit 9a2a9a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions custom_components/vallox2mqtt/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,15 @@

_LOGGER = logging.getLogger(__name__)

# TODO: Remove this old style shit
#def setup_platform(hass, config, add_entities, discovery_info=None):
# """Set up the sensor platform."""
# add_entities([ValloxDigitBinarySensor(hass)])

async def async_setup_entry(hass, entry, async_add_devices):
"""Setup sensor platform."""
async_add_devices([
ValloxDigitStatusSensor(hass, entry),
ValloxDigitAttributedBinarySensor(hass, entry, "Motor In", 'motor_in'),
ValloxDigitAttributedBinarySensor(hass, entry, "Motor Out", 'motor_out'),
ValloxDigitAttributedBinarySensor(hass, entry, "Summer Mode", 'summer_mode'),
ValloxDigitAttributedBinarySensor(hass, entry, "Front Heating", 'front_heating')
ValloxDigitAttributedBinarySensor(hass, entry, "Front Heating", 'front_heating'),
ValloxDigitAttributedBinarySensor(hass, entry, "Service Needed", 'service_needed')
])

class ValloxDigitBinarySensor(BinarySensorEntity):
Expand Down

0 comments on commit 9a2a9a8

Please sign in to comment.