Add return type to tests without arguments (#87613)
* Add return type to tests without arguments * Black * Cancel fixture amends
This commit is contained in:
parent
fb4c0b4b7a
commit
4142f0d15d
99 changed files with 473 additions and 459 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Test Home Assistant icon util methods."""
|
||||
|
||||
|
||||
def test_battery_icon():
|
||||
def test_battery_icon() -> None:
|
||||
"""Test icon generator for battery sensor."""
|
||||
from homeassistant.helpers.icon import icon_for_battery_level
|
||||
|
||||
|
@ -46,7 +46,7 @@ def test_battery_icon():
|
|||
assert iconbase + postfix_charging == icon_for_battery_level(level, True)
|
||||
|
||||
|
||||
def test_signal_icon():
|
||||
def test_signal_icon() -> None:
|
||||
"""Test icon generator for signal sensor."""
|
||||
from homeassistant.helpers.icon import icon_for_signal_level
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue