Add init return type to integrations (#87523)
Add type hints to integrations
This commit is contained in:
parent
ade0d6fcae
commit
bb3e0633a4
78 changed files with 118 additions and 84 deletions
|
@ -94,7 +94,7 @@ def setup_platform(
|
|||
class RedditSensor(SensorEntity):
|
||||
"""Representation of a Reddit sensor."""
|
||||
|
||||
def __init__(self, reddit, subreddit: str, limit: int, sort_by: str):
|
||||
def __init__(self, reddit, subreddit: str, limit: int, sort_by: str) -> None:
|
||||
"""Initialize the Reddit sensor."""
|
||||
self._reddit = reddit
|
||||
self._subreddit = subreddit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue