Fix integrations.json creation, make iot_standards a list (#80945)

This commit is contained in:
Bram Kragten 2022-10-25 13:43:40 +02:00 committed by GitHub
parent 64eb316908
commit 36bb0bbc1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 8 deletions

View file

@ -186,9 +186,9 @@ class Integration:
return self.manifest.get("iot_class")
@property
def iot_standard(self) -> str:
def iot_standards(self) -> list[str]:
"""Return the IoT standard supported by this virtual integration."""
return self.manifest.get("iot_standard", {})
return self.manifest.get("iot_standards", [])
def add_error(self, *args: Any, **kwargs: Any) -> None:
"""Add an error."""