From 2918080976c1fa17d32f99905f2d315571805673 Mon Sep 17 00:00:00 2001 From: Colin de Vries Date: Tue, 24 Sep 2024 09:23:58 +0200 Subject: [PATCH] IKEA INSPELNING support (#98) * Update outlet.py for Inspelning support * Forgot the import * Make the pipeline happy --- src/dirigera/devices/outlet.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/dirigera/devices/outlet.py b/src/dirigera/devices/outlet.py index 65277fa..d5739d6 100644 --- a/src/dirigera/devices/outlet.py +++ b/src/dirigera/devices/outlet.py @@ -1,4 +1,5 @@ from __future__ import annotations +import datetime from typing import Any, Optional, Dict from .device import Attributes, Device, StartupEnum from ..hub.abstract_smart_home_hub import AbstractSmartHomeHub @@ -10,8 +11,19 @@ class OutletAttributes(Attributes): + # pylint: disable=too-many-positional-arguments is_on: bool startup_on_off: Optional[StartupEnum] = None + status_light: Optional[bool] = None + identify_period: Optional[int] = None + permitting_join: Optional[bool] = None + energy_consumed_at_last_reset: Optional[float] = None + current_active_power: Optional[float] = None + current_amps: Optional[float] = None + current_voltage: Optional[float] = None + total_energy_consumed: Optional[float] = None + total_energy_consumed_last_updated: Optional[datetime.datetime] = None + time_of_last_energy_reset: Optional[datetime.datetime] = None class Outlet(Device):