From 0a3a752b4cf52c4547bfbbb65fc4e764454bf2c3 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 4 Jul 2019 18:20:46 +0200 Subject: [PATCH] Add timezone to info call (#1146) --- API.md | 3 ++- hassio/api/info.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 87226f6c4..48c2cc5f5 100644 --- a/API.md +++ b/API.md @@ -730,7 +730,8 @@ return: "arch": "arch", "supported_arch": ["arch1", "arch2"], "channel": "stable|beta|dev", - "logging": "debug|info|warning|error|critical" + "logging": "debug|info|warning|error|critical", + "timezone": "Europe/Zurich" } ``` diff --git a/hassio/api/info.py b/hassio/api/info.py index 527397946..249f6f03c 100644 --- a/hassio/api/info.py +++ b/hassio/api/info.py @@ -14,6 +14,7 @@ from ..const import ( ATTR_MACHINE, ATTR_SUPERVISOR, ATTR_SUPPORTED_ARCH, + ATTR_TIMEZONE, ) from ..coresys import CoreSysAttributes from .utils import api_process @@ -37,4 +38,5 @@ class APIInfo(CoreSysAttributes): ATTR_SUPPORTED_ARCH: self.sys_arch.supported, ATTR_CHANNEL: self.sys_updater.channel, ATTR_LOGGING: self.sys_config.logging, + ATTR_TIMEZONE: self.sys_timezone, }