From a91dfc79547e12c795efab1007305e1166f2c380 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 13 Dec 2023 10:24:34 +0100 Subject: [PATCH] Fix entity descriptions in philips_js (#105625) --- homeassistant/components/philips_js/binary_sensor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/philips_js/binary_sensor.py b/homeassistant/components/philips_js/binary_sensor.py index 1e6c1241aea..ec93f0ab87e 100644 --- a/homeassistant/components/philips_js/binary_sensor.py +++ b/homeassistant/components/philips_js/binary_sensor.py @@ -18,14 +18,11 @@ from .const import DOMAIN from .entity import PhilipsJsEntity -@dataclass +@dataclass(kw_only=True) class PhilipsTVBinarySensorEntityDescription(BinarySensorEntityDescription): """A entity description for Philips TV binary sensor.""" - def __init__(self, recording_value, *args, **kwargs) -> None: - """Set up a binary sensor entity description and add additional attributes.""" - super().__init__(*args, **kwargs) - self.recording_value: str = recording_value + recording_value: str DESCRIPTIONS = (