From 52ce92df7e94f286f2f9274c7393884fa4faf8e9 Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Sat, 19 Oct 2019 18:43:25 -0500 Subject: [PATCH] Add logger to climate --- custom_components/badnest/climate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/badnest/climate.py b/custom_components/badnest/climate.py index e673131..bca77db 100644 --- a/custom_components/badnest/climate.py +++ b/custom_components/badnest/climate.py @@ -1,5 +1,6 @@ """Demo platform that offers a fake climate device.""" from datetime import datetime +import logging from homeassistant.components.climate import ClimateDevice from homeassistant.components.climate.const import ( @@ -56,6 +57,8 @@ PRESET_AWAY_AND_ECO = "Away and Eco" PRESET_MODES = [PRESET_NONE, PRESET_AWAY, PRESET_ECO, PRESET_AWAY_AND_ECO] +_LOGGER = logging.getLogger(__name__) + async def async_setup_platform(hass, config,