@@ -50,10 +50,9 @@ def __init__(self, config, device_connection):
50
50
async def async_added_to_hass (self ):
51
51
"""Run when entity about to be added to hass."""
52
52
await super ().async_added_to_hass ()
53
- if not self .device_connection .is_group :
54
- await self .device_connection .activate_status_request_handler (
55
- self .setpoint_variable
56
- )
53
+ await self .device_connection .activate_status_request_handler (
54
+ self .setpoint_variable
55
+ )
57
56
58
57
@property
59
58
def is_on (self ):
@@ -86,10 +85,9 @@ def __init__(self, config, device_connection):
86
85
async def async_added_to_hass (self ):
87
86
"""Run when entity about to be added to hass."""
88
87
await super ().async_added_to_hass ()
89
- if not self .device_connection .is_group :
90
- await self .device_connection .activate_status_request_handler (
91
- self .bin_sensor_port
92
- )
88
+ await self .device_connection .activate_status_request_handler (
89
+ self .bin_sensor_port
90
+ )
93
91
94
92
@property
95
93
def is_on (self ):
@@ -118,8 +116,7 @@ def __init__(self, config, device_connection):
118
116
async def async_added_to_hass (self ):
119
117
"""Run when entity about to be added to hass."""
120
118
await super ().async_added_to_hass ()
121
- if not self .device_connection .is_group :
122
- await self .device_connection .activate_status_request_handler (self .source )
119
+ await self .device_connection .activate_status_request_handler (self .source )
123
120
124
121
@property
125
122
def is_on (self ):
0 commit comments