1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-27 22:34:47 +00:00

Use f-strings in integrations starting with "F"and"G" (#32150)

* Use f-strings in integrations starting with F

* Use f-strings in tests for integrations starting with F

* Use f-strings in integrations starting with G

* Use f-strings in tests for integrations starting with G

* Fix pylint error

* Fix broken test
This commit is contained in:
springstan
2020-02-25 02:54:20 +01:00
committed by GitHub
parent 496bd3dddf
commit ad102b3840
59 changed files with 219 additions and 344 deletions

View File

@@ -923,9 +923,9 @@ async def test_flux_with_multiple_lights(hass):
def event_date(hass, event, now=None):
if event == SUN_EVENT_SUNRISE:
print("sunrise {}".format(sunrise_time))
print(f"sunrise {sunrise_time}")
return sunrise_time
print("sunset {}".format(sunset_time))
print(f"sunset {sunset_time}")
return sunset_time
with patch(