mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Update docstrings (#7374)
* Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstring * Update docstrings * Update docstrings * Fix lint issues * Update docstrings * Revert changes in dict
This commit is contained in:
committed by
Paulus Schoutsen
parent
0e08925259
commit
a4f1f6e724
@@ -39,15 +39,15 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the USPS platform."""
|
||||
"""Set up the USPS platform."""
|
||||
import myusps
|
||||
try:
|
||||
cookie = hass.config.path(COOKIE)
|
||||
session = myusps.get_session(config.get(CONF_USERNAME),
|
||||
config.get(CONF_PASSWORD),
|
||||
cookie_path=cookie)
|
||||
session = myusps.get_session(
|
||||
config.get(CONF_USERNAME), config.get(CONF_PASSWORD),
|
||||
cookie_path=cookie)
|
||||
except myusps.USPSError:
|
||||
_LOGGER.exception('Could not connect to My USPS')
|
||||
_LOGGER.exception("Could not connect to My USPS")
|
||||
return False
|
||||
|
||||
add_devices([USPSSensor(session, config.get(CONF_NAME),
|
||||
|
||||
Reference in New Issue
Block a user