Improve string formatting v6 (#33698)
This commit is contained in:
1 parent
d7e3b0b755
commit
eae21be5b9
43 files changed
+81
-87
No files matched your search
@@ -82,9 +82,9 @@ async def async_setup(hass, config):
|
||||
|
||||
conf = config[DOMAIN]
|
||||
|
||||
identifier = "{}, {}".format(
|
||||
conf.get(CONF_LATITUDE, hass.config.latitude),
|
||||
conf.get(CONF_LONGITUDE, hass.config.longitude),
|
||||
identifier = (
|
||||
f"{conf.get(CONF_LATITUDE, hass.config.latitude)}, "
|
||||
f"{conf.get(CONF_LONGITUDE, hass.config.longitude)}"
|
||||
)
|
||||
if identifier in configured_instances(hass):
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user