Use tuple literals (#33661)

This commit is contained in:
springstan
2020-04-04 22:45:55 +02:00
committed by GitHub
parent 0d95eff21d
commit fddaea797e
2 changed files with 2 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ class Group(Entity):
if entity_ids:
self.tracking = tuple(ent_id.lower() for ent_id in entity_ids)
else:
self.tracking = tuple()
self.tracking = ()
self.group_on = None
self.group_off = None
self.user_defined = user_defined

View File

@@ -51,7 +51,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
class TcpSensor(Entity):
"""Implementation of a TCP socket based sensor."""
required = tuple()
required = ()
def __init__(self, hass, config):
"""Set all the config values if they exist and get initial state."""