mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +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
@@ -32,7 +32,7 @@ SCAN_INTERVAL = timedelta(minutes=5)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the pocketcasts platform for sensors."""
|
||||
"""Set up the pocketcasts platform for sensors."""
|
||||
import pocketcasts
|
||||
try:
|
||||
api = pocketcasts.Api(
|
||||
@@ -61,9 +61,9 @@ class PocketCastsSensor(Entity):
|
||||
"""Update sensor values."""
|
||||
try:
|
||||
self._state = len(self._api.new_episodes_released())
|
||||
_LOGGER.debug('Found %d new episodes', self._state)
|
||||
_LOGGER.debug("Found %d new episodes", self._state)
|
||||
except OSError as err:
|
||||
_LOGGER.warning('Failed to contact server: %s', err)
|
||||
_LOGGER.warning("Failed to contact server: %s", err)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
||||
Reference in New Issue
Block a user