Skip to content

Commit

Permalink
Merge pull request #65 from jontofront/updated-repository
Browse files Browse the repository at this point in the history
Updated repository
  • Loading branch information
jontofront authored Oct 3, 2024
2 parents 6fac3cd + b8276ea commit d9544c1
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 9 deletions.
78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Report an issue with Econet300 home assistant integration
description: Report an issue with Econet300 home assistant integration.
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- jontofront
body:
- type: markdown
attributes:
value: |
This issue form is for reporting bugs only!
If you have a feature or enhancement request, please use the feature request issue type.
[feature request]: https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/issues/new/choose
- type: textarea
validations:
required: true
attributes:
label: The problem
description: >-
Describe the issue you are experiencing here, to communicate to the
maintainers. Tell us what you were trying to do and what happened.
Provide a clear and concise description of what the problem is.
- type: markdown
attributes:
value: |
## Environment
- type: input
id: tech_version
validations:
required: true
attributes:
label: What version of Tech Controllers integration has the issue?
- type: input
id: ha_version
validations:
required: true
attributes:
label: What version of Home Assistant Core has the issue?
placeholder: core-
description: >
Can be found in: [Settings ⇒ System ⇒ Repairs ⇒ Three Dots in Upper Right ⇒ System information](https://my.home-assistant.io/redirect/system_health/).
[![Open your Home Assistant instance and show the system information.](https://my.home-assistant.io/badges/system_health.svg)](https://my.home-assistant.io/redirect/system_health/)
- type: input
attributes:
label: What was the last working version of Tech Controller integration?
description: >
If known, otherwise leave blank.
- type: markdown
attributes:
value: |
# Details
- type: textarea
attributes:
label: Diagnostics information
placeholder: "drag-and-drop the diagnostics data file here (do not copy-and-paste the content)"
description: >-
Follow HA guide to [download diagnostic data](https://www.home-assistant.io/docs/configuration/troubleshooting/#debug-logs-and-diagnostics).
**It would really help if you could download the diagnostics data for the device you are having issues with,
and <ins>drag-and-drop that file into the textbox below.</ins>**
It generally allows pinpointing defects and thus resolving issues faster.
- type: textarea
attributes:
label: Anything in the logs that might be useful for us?
description: For example, error message, or stack traces.
render: text
- type: textarea
attributes:
label: Additional information
description: >
If you have any additional information for us, use the field below.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Request a feature from Econet300 home assistant integration
description: Request a feature from Econet300 home assistant integration.
title: "[Feat]: "
labels: ["feature", "triage"]
assignees:
- jontofront
body:
- type: markdown
attributes:
value: |
This issue form is for requesting new features only!
If you have a bug report, please use the [bug report] issue type.
[bug report]: https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/issues/new/choose
- type: textarea
validations:
required: true
attributes:
label: The request
description: >-
Describe the feature you are requesting here, to communicate to the
maintainers.
A clear and concise description of what you want to happen.
- type: textarea
attributes:
label: Additional information
description: >
If you have any additional information, context, screenshots for us, use the field below.
2 changes: 1 addition & 1 deletion .github/workflows/hacs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
hacs:
name: HACS Action
name: Validate hacs
runs-on: "ubuntu-latest"
steps:
- name: HACS Action
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
draft
.idea/
.vscode/*
.vscode/*
.ruff_cache
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,13 @@ Thank for @pblxptr add new code line from him
- cleaned translation files and rename keys by requrements
- Added: alarm constants for future

## [v1.0.0-beta-11] 2024-10-03
- Added: `boiler_status` sensor
- Added: `boiler_status` binary_sensor
- Added: `boiler_status` sensor key `boiler_status`
- Added: `boiler_status` binary_sensor key `boiler_status`
- Added: `boiler_status` sensor key `boiler_status_text`
- Added: `boiler_status` binary_sensor key `boiler_status_text`



3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Integration tested with ecoMAX controller ecoMAX810P-L TOUCH manufactured by [Pl
* v0.3.3 - version is stable. Most of the work was done by @pblxpt, for which we're very thankful as the community.
* v1.0.0_beta - is a new dev integration version that fetches more data from API, I don't know yet if it will be better or worse :). It's my first work.

## :arrow_up: Migration to version 2 (v1.0.0_beta)
❗ This is a "version reset" release ❗ Migrations are not supported from previous versions! Please remove the integration and start anew with this version.


## Example
Here is an example setup showing econet300 device entities:
Expand Down
9 changes: 6 additions & 3 deletions custom_components/econet300/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"domain": "econet300",
"name": "ecoNET300",
"codeowners": ["@pblxptr","@jontofront"],
"codeowners": [
"@pblxptr",
"@jontofront"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/pblxptr/ecoNET-300-Home-Assistant-Integration",
Expand All @@ -10,6 +13,6 @@
"issue_tracker": "https://github.com/pblxptr/ecoNET-300-Home-Assistant-Integration/issues",
"requirements": [],
"ssdp": [],
"version": "1.0.0",
"version": "v1.0.0-beta-11",
"zeroconf": []
}
}
3 changes: 2 additions & 1 deletion custom_components/econet300/number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base entity number for Econet300."""

from dataclasses import dataclass
import logging

Expand Down Expand Up @@ -62,7 +63,7 @@ def _sync_state(self, value):
self._attr_native_min_value = ENTITY_MIN_VALUE.get(map_key)
self._attr_native_max_value = ENTITY_MAX_VALUE.get(map_key)
self.async_write_ha_state()
self.async_set_limits_values()
self.hass.async_create_task(self.async_set_limits_values())

async def async_set_limits_values(self):
"""async Sync number limits."""
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.7.0
homeassistant>=2024.3.0
ruff==0.4.3
colorlog==6.8.2
homeassistant>=2024.9.2
ruff==0.6.5
codespell==2.3.0

0 comments on commit d9544c1

Please sign in to comment.