mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add first batch of Ruff PT rules (#113665)
* Add first batch of Ruff PT rules * fix weather test * Fix pilight test * Update test_intent.py * Update pilight test_init.py * Update test_init.py
This commit is contained in:
@@ -49,7 +49,7 @@ async def test_get_actions(
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"hidden_by,entity_category",
|
||||
("hidden_by", "entity_category"),
|
||||
(
|
||||
(er.RegistryEntryHider.INTEGRATION, None),
|
||||
(er.RegistryEntryHider.USER, None),
|
||||
|
||||
@@ -90,7 +90,7 @@ def bump_version(version, bump_type):
|
||||
to_change["dev"] = ("dev", dt_util.utcnow().strftime("%Y%m%d"))
|
||||
|
||||
else:
|
||||
assert False, f"Unsupported type: {bump_type}"
|
||||
raise ValueError(f"Unsupported type: {bump_type}")
|
||||
|
||||
temp = Version("0")
|
||||
temp._version = version._version._replace(**to_change)
|
||||
|
||||
Reference in New Issue
Block a user