Skip to content

Commit

Permalink
Merge pull request #48 from jmcruvellier/dev
Browse files Browse the repository at this point in the history
Preparing Beta
  • Loading branch information
jmcruvellier authored Nov 11, 2023
2 parents 8cf5b3d + dcd86df commit a4e69c5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions custom_components/little_monkey/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.0

- Version Beta

## 0.0.1

- Version Alpha
4 changes: 2 additions & 2 deletions custom_components/little_monkey/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ async def async_step_init(
if user_input is not None:
# Update config entry with data from user input
self.hass.config_entries.async_update_entry(
self._config_entry,
entry=self._config_entry,
data=user_input,
options={ CONF_LANG: DEFAULT_LANG }
# options={ CONF_LANG: DEFAULT_LANG }
)

client = await self._get_cookies(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/little_monkey/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DOMAIN = "little_monkey"
MANUFACTURER = "Jean-Marc Cruvellier"
MODEL = "Ecojoko"
VERSION = "0.0.1"
VERSION = "0.1.0"
ATTRIBUTION = "Data provided by https://service.ecojoko.com//"
POLL_INTERVAL = "poll_interval"
DEFAULT_POLL_INTERVAL = "5"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/little_monkey/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"integration_type": "device",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/jmcruvellier/little_monkey/issues",
"version": "0.0.1"
"version": "0.1.0"
}
4 changes: 1 addition & 3 deletions custom_components/little_monkey/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
CONF_USE_HCHP_FEATURE,
CONF_USE_TEMPO_FEATURE,
CONF_USE_TEMPHUM_FEATURE,
CONF_USE_PROD_FEATURE,
CONF_USE_PROD_FEATURE
)

async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the custom component sensors."""
# Fetch data or configure your sensors here
coordinator = hass.data[DOMAIN][config_entry.entry_id]

# Beginning of new code

# Create the main device entity
firmware = coordinator.data["gateway_firmware_version"]
main_device = EcojokoEntity(coordinator, config_entry.data.get(CONF_NAME), firmware)
Expand Down

0 comments on commit a4e69c5

Please sign in to comment.