Skip to content

Commit feba1c9

Browse files
committed
Add dict as possible commands type
1 parent 9175336 commit feba1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dirigera/devices/scene.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22
import datetime
33
from enum import Enum
4-
from typing import Dict, Any, List, Optional
4+
from typing import Dict, Any, List, Optional, Union
55
from .base_ikea_model import BaseIkeaModel
66
from .device import Attributes
77
from ..hub.abstract_smart_home_hub import AbstractSmartHomeHub
@@ -130,7 +130,7 @@ class Scene(BaseIkeaModel):
130130
last_completed: Optional[datetime.datetime] = None
131131
last_triggered: Optional[datetime.datetime] = None
132132
last_undo: Optional[datetime.datetime] = None
133-
commands: List[str]
133+
commands: List[Union[str, Dict[str, Any]]]
134134
undo_allowed_duration: int
135135

136136
def reload(self) -> Scene:

0 commit comments

Comments
 (0)