diff --git a/homeassistant/components/axis/const.py b/homeassistant/components/axis/const.py index c6cd6976129..5e730708591 100644 --- a/homeassistant/components/axis/const.py +++ b/homeassistant/components/axis/const.py @@ -1,7 +1,7 @@ """Constants for the Axis component.""" import logging -LOGGER = logging.getLogger('homeassistant.components.axis') +LOGGER = logging.getLogger(__package__) DOMAIN = 'axis' diff --git a/homeassistant/components/emulated_roku/binding.py b/homeassistant/components/emulated_roku/binding.py index 9dfb58a5e34..b6a6719a37b 100644 --- a/homeassistant/components/emulated_roku/binding.py +++ b/homeassistant/components/emulated_roku/binding.py @@ -5,7 +5,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) from homeassistant.core import CoreState, EventOrigin -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) EVENT_ROKU_COMMAND = 'roku_command' diff --git a/homeassistant/components/hue/const.py b/homeassistant/components/hue/const.py index d61a0aa7e89..522e8fc0ad9 100644 --- a/homeassistant/components/hue/const.py +++ b/homeassistant/components/hue/const.py @@ -1,6 +1,6 @@ """Constants for the Hue component.""" import logging -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) DOMAIN = "hue" API_NUPNP = 'https://www.meethue.com/api/nupnp' diff --git a/homeassistant/components/rainmachine/const.py b/homeassistant/components/rainmachine/const.py index 56b9f653bf2..c6e001ab981 100644 --- a/homeassistant/components/rainmachine/const.py +++ b/homeassistant/components/rainmachine/const.py @@ -2,7 +2,7 @@ from datetime import timedelta import logging -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) DOMAIN = 'rainmachine' diff --git a/homeassistant/components/smhi/const.py b/homeassistant/components/smhi/const.py index 4cd1d6f7b4b..d04f867e204 100644 --- a/homeassistant/components/smhi/const.py +++ b/homeassistant/components/smhi/const.py @@ -13,4 +13,4 @@ ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".smhi_{}" ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format( HOME_LOCATION_NAME) -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) diff --git a/homeassistant/components/unifi/const.py b/homeassistant/components/unifi/const.py index fdeb15ee4ad..4d65a0d223a 100644 --- a/homeassistant/components/unifi/const.py +++ b/homeassistant/components/unifi/const.py @@ -1,7 +1,7 @@ """Constants for the UniFi component.""" import logging -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) DOMAIN = 'unifi' CONTROLLER_ID = '{host}-{site}' diff --git a/homeassistant/components/upnp/const.py b/homeassistant/components/upnp/const.py index 9d2957660dc..5ca321c9d08 100644 --- a/homeassistant/components/upnp/const.py +++ b/homeassistant/components/upnp/const.py @@ -7,5 +7,5 @@ CONF_HASS = 'hass' CONF_LOCAL_IP = 'local_ip' CONF_PORTS = 'ports' DOMAIN = 'upnp' -LOGGER = logging.getLogger('.') +LOGGER = logging.getLogger(__package__) SIGNAL_REMOVE_SENSOR = 'upnp_remove_sensor'