Update file header (#21023)

* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
This commit is contained in:
Fabian Affolter authored and GitHub committed 2019-02-13 21:21:14 +01:00
1 parent 22af9707ad
commit 127c55e0c1
492 files changed
+1015 -3497

No files matched your search

+4 -10
View File
@@ -1,10 +1,4 @@
"""
Support for Ebusd daemon for communication with eBUS heating systems.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/ebus/
"""
"""Support for Ebusd daemon for communication with eBUS heating systems."""
from datetime import timedelta
import logging
import socket
@@ -53,13 +47,13 @@ def setup(hass, config):
conf.get(CONF_HOST), conf.get(CONF_PORT))
try:
_LOGGER.debug("Ebusd component setup started.")
_LOGGER.debug("Ebusd component setup started")
import ebusdpy
ebusdpy.init(server_address)
hass.data[DOMAIN] = EbusdData(server_address, circuit)
sensor_config = {
'monitored_conditions': monitored_conditions,
CONF_MONITORED_CONDITIONS: monitored_conditions,
'client_name': name,
'sensor_types': SENSOR_TYPES[circuit]
}
@@ -68,7 +62,7 @@ def setup(hass, config):
hass.services.register(
DOMAIN, SERVICE_EBUSD_WRITE, hass.data[DOMAIN].write)
_LOGGER.debug("Ebusd component setup completed.")
_LOGGER.debug("Ebusd component setup completed")
return True
except (socket.timeout, socket.error):
return False