Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit 03de720

Browse files
authored
Merge pull request #82 from briis/1.0.15
1.0.15
2 parents 07dabc9 + b7776c6 commit 03de720

File tree

16 files changed

+199
-91
lines changed

16 files changed

+199
-91
lines changed

.devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "ludeeus/integration_blueprint",
3+
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
4+
"postCreateCommand": "scripts/setup",
5+
"forwardPorts": [
6+
8123
7+
],
8+
"portsAttributes": {
9+
"8123": {
10+
"label": "Home Assistant",
11+
"onAutoForward": "notify"
12+
}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"ms-python.python",
18+
"github.vscode-pull-request-github",
19+
"ryanluker.vscode-coverage-gutters",
20+
"ms-python.vscode-pylance"
21+
],
22+
"settings": {
23+
"files.eol": "\n",
24+
"editor.tabSize": 4,
25+
"python.pythonPath": "/usr/bin/python3",
26+
"python.analysis.autoSearchPaths": false,
27+
"python.linting.pylintEnabled": true,
28+
"python.linting.enabled": true,
29+
"python.formatting.provider": "black",
30+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
31+
"editor.formatOnPaste": false,
32+
"editor.formatOnSave": true,
33+
"editor.formatOnType": true,
34+
"files.trimTrailingWhitespace": true
35+
}
36+
}
37+
},
38+
"remoteUser": "vscode",
39+
"features": {
40+
"ghcr.io/devcontainers/features/rust:1": {}
41+
}
42+
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

.devcontainer/automations.yaml

Whitespace-only changes.

.devcontainer/configuration.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,47 @@ dmypy.json
129129
.pyre/
130130
test.py
131131
.DS_Store
132+
config/.HA_VERSION
133+
config/automations.yaml
134+
config/home-assistant_v2.db
135+
config/home-assistant_v2.db-shm
136+
config/home-assistant_v2.db-wal
137+
config/home-assistant.log.1
138+
.gitignore
139+
config/scenes.yaml
140+
.gitignore
141+
config/secrets.yaml
142+
config/scripts.yaml
143+
.gitignore
144+
config/.storage/assist_pipeline.pipelines
145+
config/.storage/auth
146+
.gitignore
147+
config/.storage/core.analytics
148+
config/.storage/auth_provider.homeassistant
149+
config/home-assistant.log.fault
150+
config/.storage/core.area_registry
151+
config/blueprints/script/homeassistant/confirmable_notification.yaml
152+
.gitignore
153+
config/blueprints/automation/homeassistant/motion_light.yaml
154+
config/blueprints/automation/homeassistant/notify_leaving_zone.yaml
155+
.gitignore
156+
config/.storage/repairs.issue_registry
157+
.gitignore
158+
.gitignore
159+
config/.storage/onboarding
160+
.gitignore
161+
config/.storage/http
162+
config/.storage/homeassistant.exposed_entities
163+
.gitignore
164+
config/.storage/core.restore_state
165+
.gitignore
166+
config/.storage/core.device_registry
167+
config/.storage/core.config_entries
168+
.gitignore
169+
config/.storage/core.entity_registry
170+
config/.storage/core.uuid
171+
.gitignore
172+
config/.storage/person
173+
config/.storage/trace.saved_traces
174+
config/.storage/core.config
175+
config/.storage/http.auth

.ruff.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
2+
3+
target-version = "py310"
4+
5+
select = [
6+
"B007", # Loop control variable {name} not used within loop body
7+
"B014", # Exception handler with duplicate exception
8+
"C", # complexity
9+
"D", # docstrings
10+
"E", # pycodestyle
11+
"F", # pyflakes/autoflake
12+
"ICN001", # import concentions; {name} should be imported as {asname}
13+
"PGH004", # Use specific rule codes when using noqa
14+
"PLC0414", # Useless import alias. Import alias does not rename original package.
15+
"SIM105", # Use contextlib.suppress({exception}) instead of try-except-pass
16+
"SIM117", # Merge with-statements that use the same scope
17+
"SIM118", # Use {key} in {dict} instead of {key} in {dict}.keys()
18+
"SIM201", # Use {left} != {right} instead of not {left} == {right}
19+
"SIM212", # Use {a} if {a} else {b} instead of {b} if not {a} else {a}
20+
"SIM300", # Yoda conditions. Use 'age == 42' instead of '42 == age'.
21+
"SIM401", # Use get from dict with default instead of an if block
22+
"T20", # flake8-print
23+
"TRY004", # Prefer TypeError exception for invalid type
24+
"RUF006", # Store a reference to the return value of asyncio.create_task
25+
"UP", # pyupgrade
26+
"W", # pycodestyle
27+
]
28+
29+
ignore = [
30+
"D202", # No blank lines allowed after function docstring
31+
"D203", # 1 blank line required before class docstring
32+
"D213", # Multi-line docstring summary should start at the second line
33+
"D404", # First word of the docstring should not be This
34+
"D406", # Section name should end with a newline
35+
"D407", # Section name underlining
36+
"D411", # Missing blank line before section
37+
"E501", # line too long
38+
"E731", # do not assign a lambda expression, use a def
39+
]
40+
41+
[flake8-pytest-style]
42+
fixture-parentheses = false
43+
44+
[pyupgrade]
45+
keep-runtime-typing = true
46+
47+
[mccabe]
48+
max-complexity = 25

.vscode/tasks.json

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,9 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "Start Home Assistant",
5+
"label": "Run Home Assistant on port 8123",
66
"type": "shell",
7-
"command": "container start",
8-
"problemMatcher": []
9-
},
10-
{
11-
"label": "Set Home Assistant Version",
12-
"type": "shell",
13-
"command": "container set-version",
14-
"problemMatcher": []
15-
},
16-
{
17-
"label": "Install Development Home Assistant Version",
18-
"type": "shell",
19-
"command": "container install",
20-
"problemMatcher": []
21-
},
22-
{
23-
"label": "Update Translations",
24-
"type": "shell",
25-
"command": "echo 'weatherflow\n' | python3 -m script.translations develop",
26-
"options": {
27-
"cwd": "/opt/hass",
28-
},
7+
"command": "scripts/develop",
298
"problemMatcher": []
309
}
3110
]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.0.15] - 2023-08-30
5+
6+
- Bump `pyweatherflowrest` to V1.0.10 to clode Issue [#81](https://github.com/briis/hass-weatherflow/issues/81)
7+
8+
49
## [1.0.14] - 2023-02-12
510

611
- The fix for issue #57, introduced a wrong unit for Absolute Humidity. Now corrected to g/m³

config/configuration.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# Loads default set of integrations. Do not remove.
3+
default_config:
4+
5+
logger:
6+
default: info
7+
logs:
8+
custom_components.weatherflow: debug
9+
10+
# Load frontend themes from the themes folder
11+
frontend:
12+
themes: !include_dir_merge_named themes
13+
14+
automation: !include automations.yaml
15+
script: !include scripts.yaml
16+
scene: !include scenes.yaml

0 commit comments

Comments
 (0)