[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-03-19 21:11:56 +00:00
parent ad2c7f11ea
commit b1f20b82b5
2 changed files with 4 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ class HCDevice:
if uid not in self.features: if uid not in self.features:
raise Exception( raise Exception(
f"{self.name}. Unable to configure appliance. Program UID {uid} is not valid" f"{self.name}. Unable to configure appliance. Program UID {uid} is not valid"
"for this device." "for this device."
) )
feature = self.features[uid] feature = self.features[uid]
@@ -123,7 +123,7 @@ class HCDevice:
if ".Program." not in feature["name"]: if ".Program." not in feature["name"]:
raise Exception( raise Exception(
f"{self.name}. Unable to configure appliance. Program UID {uid} is not a valid" f"{self.name}. Unable to configure appliance. Program UID {uid} is not a valid"
"program." "program."
) )
if "options" in data: if "options" in data:
@@ -131,7 +131,7 @@ class HCDevice:
if str(option_uid) not in self.features: if str(option_uid) not in self.features:
raise Exception( raise Exception(
f"{self.name}. Unable to configure appliance. Option UID {uid} is not" f"{self.name}. Unable to configure appliance. Option UID {uid} is not"
"valid for this device." "valid for this device."
) )
# Test the feature of an appliance agains a data object # Test the feature of an appliance agains a data object