Skip to content

Commit

Permalink
Fixes to number entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ekutner committed Feb 12, 2024
1 parent 5b02bcc commit 184d1d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ logger:
logs:
home_connect_async: debug
home_connect_alt: debug
# custom_components.home_connect_alt: debug
custom_components.home_connect_alt: debug
homeassistant.helpers.config_entry_oauth2_flow: debug

home_connect_alt:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/home_connect_alt/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"requirements": ["home-connect-async==0.8.0"],
"loggers": ["home_connect_alt", "home_connect_async"],
"ssdp": [],
"version": "1.1.0-b1",
"version": "1.1.0-b2",
"zeroconf": []
}
4 changes: 2 additions & 2 deletions custom_components/home_connect_alt/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ def add_appliance(appliance:Appliance) -> None:
if program.options:
for option in program.options.values():
if (not conf.has_entity_setting(option.key, "type") and option.type in number_types) or conf.has_entity_setting(option.key, "type") in number_types:
device = OptionNumber(appliance, option.key, hc_obj=option)
device = OptionNumber(appliance, option.key, conf, hc_obj=option)
entity_manager.add(device)

if appliance.settings:
for setting in appliance.settings.values():
if ((not conf.has_entity_setting(setting.key, "type") and setting.type in number_types) or conf.has_entity_setting(setting.key, "type") in number_types) \
and setting.access != "read" :
device = SettingsNumber(appliance, setting.key, hc_obj=setting)
device = SettingsNumber(appliance, setting.key, conf, hc_obj=setting)
entity_manager.add(device)

entity_manager.register()
Expand Down

0 comments on commit 184d1d2

Please sign in to comment.