Skip to content

Commit

Permalink
Add KEY_INDEX to valid sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelAngelLV committed Jul 21, 2024
1 parent 59e7aeb commit f1d6a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiopvpc/pvpc_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
DEFAULT_TIMEOUT,
EsiosApiData,
EsiosResponse,
KEY_INDEXED,
KEY_PVPC,
REFERENCE_TZ,
SENSOR_KEY_TO_API_SERIES,
Expand Down Expand Up @@ -212,7 +213,7 @@ async def check_api_token(

def update_active_sensors(self, data_id: str, enabled: bool):
"""Update enabled API indicators to download."""
assert data_id in ALL_SENSORS
assert data_id in ALL_SENSORS or data_id == KEY_INDEXED
if enabled:
self._sensor_keys.add(data_id)
elif data_id in self._sensor_keys:
Expand Down

0 comments on commit f1d6a76

Please sign in to comment.