Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pysml to 0.0.12 #93686

Merged
merged 1 commit into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/edl21/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"integration_type": "hub",
"iot_class": "local_push",
"loggers": ["sml"],
"requirements": ["pysml==0.0.11"]
"requirements": ["pysml==0.0.12"]
}
6 changes: 1 addition & 5 deletions homeassistant/components/edl21/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,7 @@ def event(self, message_body) -> None:
assert isinstance(message_body, SmlGetListResponse)
LOGGER.debug("Received sml message for %s: %s", self._name, message_body)

electricity_id = None
for telegram in message_body.get("valList", []):
if telegram.get("objName") in ("1-0:0.0.9*255", "1-0:96.1.0*255"):
electricity_id = telegram.get("value")
break
electricity_id = message_body["serverId"]

if electricity_id is None:
LOGGER.debug("No electricity id found in sml message for %s", self._name)
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ pysmartapp==0.3.3
pysmartthings==0.7.6

# homeassistant.components.edl21
pysml==0.0.11
pysml==0.0.12

# homeassistant.components.snmp
pysnmplib==5.0.21
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ pysmartapp==0.3.3
pysmartthings==0.7.6

# homeassistant.components.edl21
pysml==0.0.11
pysml==0.0.12

# homeassistant.components.snmp
pysnmplib==5.0.21
Expand Down