Skip to content

Commit

Permalink
Merge branch 'master' into patch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Apr 6, 2024
2 parents d5d3d4b + 2c9ae66 commit f503065
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 76 deletions.
8 changes: 3 additions & 5 deletions custom_components/audiconnect/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging

from homeassistant.components.binary_sensor import DEVICE_CLASSES, BinarySensorEntity
from homeassistant.components.binary_sensor import BinarySensorEntity
from homeassistant.const import CONF_USERNAME

from .audi_entity import AudiEntity
Expand Down Expand Up @@ -37,7 +37,5 @@ def is_on(self):

@property
def device_class(self):
"""Return the class of this sensor, from DEVICE_CLASSES."""
if self._instrument.device_class in DEVICE_CLASSES:
return self._instrument.device_class
return None
"""Return the device_class of this sensor."""
return self._instrument.device_class
Loading

0 comments on commit f503065

Please sign in to comment.