Skip to content

Commit

Permalink
Update State definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tetienne committed Jan 3, 2022
1 parent 3290f70 commit 7c0e189
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyoverkiz/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,13 @@ class State:
type: DataType
value: str | None = None

def __init__(self, name: str, type: int, value: str | None = None, **_: Any):
def __init__(
self,
name: str,
type: int,
value: None | int | float | str | bool = None,
**_: Any,
):
self.name = name
self.value = value
self.type = DataType(type)
Expand Down

0 comments on commit 7c0e189

Please sign in to comment.