From 7c3596cc920957dfe7ca23e42828aad826e44c43 Mon Sep 17 00:00:00 2001 From: BottlecapDave Date: Tue, 24 Dec 2024 20:35:13 +0000 Subject: [PATCH] feat: Added support for INDRA intelligent provider (5 minutes dev time) --- custom_components/octopus_energy/intelligent/__init__.py | 3 ++- tests/unit/intelligent/test_get_intelligent_features.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/octopus_energy/intelligent/__init__.py b/custom_components/octopus_energy/intelligent/__init__.py index ef0a753e..95f55a90 100644 --- a/custom_components/octopus_energy/intelligent/__init__.py +++ b/custom_components/octopus_energy/intelligent/__init__.py @@ -230,7 +230,8 @@ def __init__(self, "SMARTCAR", "TESLA", "SMART_PEAR", - "HYPERVOLT" + "HYPERVOLT", + "INDRA" ] def get_intelligent_features(provider: str) -> IntelligentFeatures: diff --git a/tests/unit/intelligent/test_get_intelligent_features.py b/tests/unit/intelligent/test_get_intelligent_features.py index d8910e3f..6b2d5f4e 100644 --- a/tests/unit/intelligent/test_get_intelligent_features.py +++ b/tests/unit/intelligent/test_get_intelligent_features.py @@ -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), @@ -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),