Skip to content

Commit

Permalink
fix: simplify conditional check for sys_params retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Jan 6, 2025
1 parent ed3effd commit dba5adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/econet300/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def async_added_to_hass(self):
# Retrieve the value from sysParams or regParams or paramsEdits
value = (
sys_params.get(expected_key)
if sys_params is not None and sys_params.get(expected_key) is not None
if sys_params.get(expected_key) is not None
else (
reg_params.get(expected_key)
if reg_params is not None and reg_params.get(expected_key) is not None
Expand Down

0 comments on commit dba5adb

Please sign in to comment.