1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Unignore Ruff PLE, PLW in tests (#114406)

* Unignore Ruff PLE, PLW in tests

* fix tests
This commit is contained in:
Sid
2024-03-29 23:58:30 +01:00
committed by GitHub
parent 969b027a46
commit aec7a67a58
14 changed files with 16 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ ENTITIES = []
def init(empty=False):
"""Initialize the platform with entities."""
global ENTITIES
global ENTITIES # noqa: PLW0603
ENTITIES = (
[]

View File

@@ -12,7 +12,7 @@ ENTITIES = {}
def init(empty=False):
"""Initialize the platform with entities."""
global ENTITIES
global ENTITIES # noqa: PLW0603
ENTITIES = (
{}

View File

@@ -13,7 +13,7 @@ ENTITIES = []
def init(empty=False):
"""Initialize the platform with entities."""
global ENTITIES
global ENTITIES # noqa: PLW0603
ENTITIES = (
[]

View File

@@ -33,7 +33,7 @@ ENTITIES = []
def init(empty=False):
"""Initialize the platform with entities."""
global ENTITIES
global ENTITIES # noqa: PLW0603
ENTITIES = [] if empty else [MockWeather()]