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

+2 -7
View File
@@ -1,9 +1,4 @@
"""
Support for WeMo switches.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/switch.wemo/
"""
"""Support for WeMo switches."""
import asyncio
import logging
from datetime import datetime, timedelta
@@ -47,7 +42,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
device = discovery.device_from_description(location, mac)
except (requests.exceptions.ConnectionError,
requests.exceptions.Timeout) as err:
_LOGGER.error('Unable to access %s (%s)', location, err)
_LOGGER.error("Unable to access %s (%s)", location, err)
raise PlatformNotReady
if device: