mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add return type to async tests without arguments (#87612)
This commit is contained in:
@@ -876,7 +876,7 @@ def test_entity_category_schema_error(value):
|
||||
schema(value)
|
||||
|
||||
|
||||
async def test_entity_description_fallback():
|
||||
async def test_entity_description_fallback() -> None:
|
||||
"""Test entity description has same defaults as entity."""
|
||||
ent = entity.Entity()
|
||||
ent_with_description = entity.Entity()
|
||||
@@ -955,7 +955,7 @@ async def test_translation_key(hass):
|
||||
assert mock_entity2.translation_key == "from_entity_description"
|
||||
|
||||
|
||||
async def test_repr_using_stringify_state():
|
||||
async def test_repr_using_stringify_state() -> None:
|
||||
"""Test that repr uses stringify state."""
|
||||
|
||||
class MyEntity(MockEntity):
|
||||
|
||||
Reference in New Issue
Block a user