mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Remove unused noqas (#135583)
This commit is contained in:
committed by
GitHub
parent
f57640c2cd
commit
8a35261fd8
@@ -570,7 +570,7 @@ async def test_unit_translation_key_without_platform_raises(
|
||||
match="cannot have a translation key for unit of measurement before "
|
||||
"being added to the entity platform",
|
||||
):
|
||||
unit = entity0.unit_of_measurement # noqa: F841
|
||||
unit = entity0.unit_of_measurement
|
||||
|
||||
setup_test_component_platform(hass, sensor.DOMAIN, [entity0])
|
||||
|
||||
@@ -580,7 +580,7 @@ async def test_unit_translation_key_without_platform_raises(
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# Should not raise after being added to the platform
|
||||
unit = entity0.unit_of_measurement # noqa: F841
|
||||
unit = entity0.unit_of_measurement
|
||||
assert unit == "Tests"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user