Skip to content

Commit

Permalink
fix: save device config (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 authored Jul 8, 2024
1 parent c8aa9bf commit 998c0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _save_device_config(self, data: dict[str, Any]) -> None:
storage_path = Path(self.hass.config.path(STORAGE_PATH))
storage_path.mkdir(parents=True, exist_ok=True)
record_file = storage_path.joinpath(f"{data[CONF_DEVICE_ID]!s}.json")
save_json(record_file.name, data)
save_json(str(record_file), data)

def _load_device_config(self, device_id: str) -> Any: # noqa: ANN401
"""Load device config from json file with device id."""
Expand Down

0 comments on commit 998c0dc

Please sign in to comment.