Skip to content

Commit f2e36df

Browse files
author
Jan C
committed
temporary drastic fix for #1490
dont check if entity is enabled anymore, assume enabled
1 parent f1251d4 commit f2e36df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

custom_components/solax_modbus/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,15 @@ def Gen4Timestring(numb):
261261
return f"{h:02d}:{m:02d}"
262262

263263
def is_entity_enabled(hass, hubname, key): # Check if the entity is enabled in Home Assistant
264+
"""
264265
for platform in ("sensor", "number", "select", "switch",):
265266
state = hass.states.get(f"{platform}.{hubname}_{key}")
266267
if state is not None:
267268
return True
268269
_LOGGER.debug(f"Entity sensor.{hubname}_{key} not found in state manager, assuming disabled - skipping unless declared internal")
269270
return False
270-
271+
"""
272+
return True # temporary solution for issue #1490
271273

272274
@dataclass
273275
class block():

0 commit comments

Comments
 (0)