mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 05:20:17 +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
@@ -59,7 +59,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the Loop Energy sensors."""
|
||||
"""Set up the Loop Energy sensors."""
|
||||
import pyloopenergy
|
||||
|
||||
elec_config = config.get(CONF_ELEC)
|
||||
@@ -77,7 +77,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
def stop_loopenergy(event):
|
||||
"""Shutdown loopenergy thread on exit."""
|
||||
_LOGGER.info("Shutting down loopenergy.")
|
||||
_LOGGER.info("Shutting down loopenergy")
|
||||
controller.terminate()
|
||||
|
||||
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, stop_loopenergy)
|
||||
|
||||
Reference in New Issue
Block a user