Skip to content

Commit

Permalink
Return empty dict on no options, fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwolsink committed Oct 11, 2023
1 parent 9662451 commit c35d722
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/aguaiot/aguaiot.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ def get_register_value_options(self, key):
for item in self.get_register(key).get("enc_val")
if item["lang"] == "ENG"
}
return {}

async def set_register_value(self, key, value):
values = [self.__prepare_value_for_writing(key, value)]
Expand Down

0 comments on commit c35d722

Please sign in to comment.