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:
@@ -13,7 +13,7 @@ ENTITIES = []
|
||||
|
||||
def init(empty=False):
|
||||
"""Initialize the platform with entities."""
|
||||
global ENTITIES
|
||||
global ENTITIES # noqa: PLW0603
|
||||
|
||||
ENTITIES = (
|
||||
[]
|
||||
|
||||
@@ -12,7 +12,7 @@ ENTITIES = {}
|
||||
|
||||
def init(empty=False):
|
||||
"""Initialize the platform with entities."""
|
||||
global ENTITIES
|
||||
global ENTITIES # noqa: PLW0603
|
||||
|
||||
ENTITIES = (
|
||||
{}
|
||||
|
||||
@@ -13,7 +13,7 @@ ENTITIES = []
|
||||
|
||||
def init(empty=False):
|
||||
"""Initialize the platform with entities."""
|
||||
global ENTITIES
|
||||
global ENTITIES # noqa: PLW0603
|
||||
|
||||
ENTITIES = (
|
||||
[]
|
||||
|
||||
@@ -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()]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user