Skip to content

Commit 371aa8e

Browse files
authored
Merge pull request #133 from plugwise/smile_typing
Smile: add typing hints
2 parents c251838 + 4366d9d commit 371aa8e

File tree

6 files changed

+370
-306
lines changed

6 files changed

+370
-306
lines changed

plugwise/constants.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
"""Plugwise Stick and Smile constants."""
2+
import logging
3+
4+
LOGGER = logging.getLogger(__name__)
25

36
# Copied homeassistant.consts
47
ATTR_DEVICE_CLASS = "device_class"
@@ -365,6 +368,15 @@
365368
STATUS = "/system/status.xml"
366369

367370
ATTR_TYPE = "type"
371+
DAYS = {
372+
"mo": 0,
373+
"tu": 1,
374+
"we": 2,
375+
"th": 3,
376+
"fr": 4,
377+
"sa": 5,
378+
"su": 6,
379+
}
368380
DEFAULT_TIMEOUT = 30
369381
DEFAULT_USERNAME = "smile"
370382
DEFAULT_PORT = 80

0 commit comments

Comments
 (0)