Bump screenlogicpy to 0.6.2 (#85725)

fixes undefined
This commit is contained in:
Kevin Worrel 2023-01-12 13:41:07 -05:00 committed by GitHub
parent 596f779254
commit 4f20b15742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 59 additions and 11 deletions

View file

@ -7,6 +7,7 @@ from homeassistant.components.binary_sensor import (
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import EntityCategory
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from . import ScreenlogicEntity
@ -64,10 +65,13 @@ async def async_setup_entry(
class ScreenLogicBinarySensor(ScreenlogicEntity, BinarySensorEntity):
"""Representation of the basic ScreenLogic binary sensor entity."""
_attr_has_entity_name = True
_attr_entity_category = EntityCategory.DIAGNOSTIC
@property
def name(self):
"""Return the sensor name."""
return f"{self.gateway_name} {self.sensor['name']}"
return self.sensor["name"]
@property
def device_class(self):