From b7000388bcff2f4afc4358872a29e70f3e604d38 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 18 Oct 2021 18:06:51 +0200 Subject: [PATCH] Door: mark from_string as static method --- pydoorlock/Door.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pydoorlock/Door.py b/pydoorlock/Door.py index f2e0849..09b0da4 100644 --- a/pydoorlock/Door.py +++ b/pydoorlock/Door.py @@ -23,6 +23,7 @@ class DoorState(Enum): Present = 1 Closed = 2 + @staticmethod def from_string(string): if string == 'lock': return DoorState.Closed