Skip to content

Commit

Permalink
feat: Added support for INDRA intelligent provider (5 minutes dev time)
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Dec 24, 2024
1 parent 05db8c2 commit 7c3596c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/octopus_energy/intelligent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def __init__(self,
"SMARTCAR",
"TESLA",
"SMART_PEAR",
"HYPERVOLT"
"HYPERVOLT",
"INDRA"
]

def get_intelligent_features(provider: str) -> IntelligentFeatures:
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/intelligent/test_get_intelligent_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
("TESLA", True, True, True, True, True, False),
("SMART_PEAR", True, True, True, True, True, False),
("HYPERVOLT", True, True, True, True, True, False),
("INDRA", True, True, True, True, True, False),
("OHME", False, False, False, False, False, False),
("DAIKIN".lower(), True, True, True, True, True, False),
("ECOBEE".lower(), True, True, True, True, True, False),
Expand All @@ -37,6 +38,7 @@
("TESLA".lower(), True, True, True, True, True, False),
("SMART_PEAR".lower(), True, True, True, True, True, False),
("HYPERVOLT".lower(), True, True, True, True, True, False),
("INDRA".lower(), True, True, True, True, True, False),
("OHME".lower(), False, False, False, False, False, False),
# Unexpected providers
("unexpected".lower(), False, False, False, False, False, True),
Expand Down

0 comments on commit 7c3596c

Please sign in to comment.