8000 Add Smart Meter B Route integration by SeraphicRav · Pull Request #123446 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content

Add Smart Meter B Route integration #123446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 77 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
db0c199
Creating new integration
SeraphicRav Aug 9, 2024
0de0fab
Adding strict typings
SeraphicRav Aug 9, 2024
a541dcb
Review fixes
SeraphicRav Aug 9, 2024
7092a83
Better UX
SeraphicRav Aug 15, 2024
4059e08
Adding tests
SeraphicRav Aug 16, 2024
ae4d22f
Fixing test
SeraphicRav Aug 16, 2024
4efb032
Test passing locally but not in CI
SeraphicRav Aug 16, 2024
c62bf5d
Fixing test ?
SeraphicRav Aug 16, 2024
97f8f10
Fixing tests
SeraphicRav Aug 21, 2024
0916178
Fixing sensor tests
SeraphicRav Aug 21, 2024
3b7ebdc
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Aug 21, 2024
935370b
Review fixes
SeraphicRav Aug 21, 2024
6341df4
Review fixes
SeraphicRav Aug 21, 2024
9bdd924
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Aug 21, 2024
ca44b38
Fixing vendor id
SeraphicRav Aug 22, 2024
440d539
Fixing usb discovery
SeraphicRav Aug 22, 2024
aa7abd2
Removing via_device
SeraphicRav Aug 22, 2024
433f686
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Aug 22, 2024
2b4b27d
Reducing config glow amount of code
SeraphicRav Aug 22, 2024
508764d
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Aug 22, 2024
c25cd9d
Removing mode change as it is handled by the library
SeraphicRav Oct 15, 2024
404c025
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Oct 15, 2024
1f9c00e
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Oct 20, 2024
ae0a70c
Fixing tests
SeraphicRav Oct 22, 2024
7f8fbf9
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Oct 22, 2024
b53e8ab
Reducing scan frequency
SeraphicRav Oct 22, 2024
dc5879d
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Oct 22, 2024
7fc7ae5
Fixing tests
SeraphicRav Oct 22, 2024
f188c22
Adding test for usb flow
SeraphicRav Oct 27, 2024
3d4533a
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Oct 27, 2024
2577716
Update homeassistant/components/smart_meter_b_route/config_flow.py
SeraphicRav Nov 10, 2024
254256f
Review fix: Extra cheks
SeraphicRav Nov 10, 2024
8a0666f
Enhancing test syntax
SeraphicRav Nov 10, 2024
7192d84
Chaing AsyncMock to Mock for synchronous code
SeraphicRav Nov 10, 2024
30567b1
Fixing non updated test
SeraphicRav Nov 10, 2024
6a9707d
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Nov 13, 2024
fa368b0
Updating library for less warning logs
SeraphicRav Nov 17, 2024
d206821
Dataclass and test skipping time
SeraphicRav Nov 18, 2024
aa63f9d
Config flow ending in either CREATE_ENTRY or ABORT
SeraphicRav Nov 19, 2024
6bfb14a
Test update
SeraphicRav Dec 4, 2024
3046f0b
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Jan 21, 2025
722f8e2
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Feb 2, 2025
6ce60ee
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 2, 2025
e4af6e4
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Feb 2, 2025
ea948f9
Skipping entity if the bid is set with another device
SeraphicRav Feb 2, 2025
b6adb75
Fixing test_coordinator
SeraphicRav Feb 11, 2025
452c73e
Small cleanup
SeraphicRav Feb 11, 2025
4dc4c36
Review fixes
SeraphicRav Feb 11, 2025
1f05cb5
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 11, 2025
18921b8
Updating code
SeraphicRav Feb 11, 2025
8fbe87f
Adding quality scale
SeraphicRav Feb 11, 2025
518322f
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 16, 2025
1266d3e
Using version published in Github action
SeraphicRav Feb 16, 2025
228442f
Updating quality scale
SeraphicRav Feb 16, 2025
c19c065
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 20, 2025
ebbefb0
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 22, 2025
f4f3bbc
Fixing translations
SeraphicRav Feb 22, 2025
657ac8e
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Feb 22, 2025
e27aa51
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Apr 9, 2025
273c6e3
Update homeassistant/components/smart_meter_b_route/sensor.py
SeraphicRav Apr 9, 2025
753ccce
Update homeassistant/components/smart_meter_b_route/sensor.py
SeraphicRav Apr 9, 2025
18cffb6
Update homeassistant/components/smart_meter_b_route/sensor.py
SeraphicRav Apr 9, 2025
25b0519
Fixing imports
SeraphicRav Apr 9, 2025
0ca39fb
Merge branch 'home-assistant:dev' into Smart-Meter-B-Route
SeraphicRav May 20, 2025
f4b9eea
Quality scale and ruff
SeraphicRav May 20, 2025
d8af8b5
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav May 28, 2025
b2ba908
Review fix and cleanup
SeraphicRav May 28, 2025
407f6f8
Updating snapshot
SeraphicRav May 28, 2025
f2fad0c
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav May 28, 2025
e26f8a5
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav May 28, 2025
68e1291
Removing discovery
SeraphicRav Jun 5, 2025
76a7ccc
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Jun 5, 2025
6a9c353
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Jun 5, 2025
c8ba535
Merge branch 'dev' into Smart-Meter-B-Route
SeraphicRav Jun 5, 2025
c882d40
review fix
SeraphicRav Jun 6, 2025
d0a9ee0
Merge branch 'Smart-Meter-B-Route' of https://github.com/SeraphicCorp…
SeraphicRav Jun 6, 2025
d1570b9
Merge branch 'home-assistant:dev' into Smart-Meter-B-Route
SeraphicRav Jul 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Quality scale and ruff
  • Loading branch information
SeraphicRav committed May 20, 2025
commit f4b9eea8ed6073c95f1f0f1cb27164651407812b
28 changes: 17 additions & 11 deletions homeassistant/components/smart_meter_b_route/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,25 @@ rules:
unique-config-entry: done

# Silver
action-exceptions: todo
config-entry-unloading: todo
action-exceptions:
status: exempt
comment: |
The integration does not provide any additional actions.
config-entry-unloading: done
docs-configuration-parameters: todo
docs-installation-parameters: todo
entity-unavailable: todo
entity-unavailable: done
integration-owner: done
log-when-unavailable: todo
log-when-unavailable: done
parallel-updates: todo
reauthentication-flow: todo
test-coverage: todo
test-coverage: done

# Gold
devices: todo
devices: done
diagnostics: todo
discovery-update-info: todo
discovery: todo
discovery-update-info: done
discovery: done
docs-data-update: todo
docs-examples: todo
docs-known-limitations: todo
Expand All @@ -58,9 +61,9 @@ rules:
docs-use-cases: todo
dynamic-devices: todo
entity-category: todo
entity-device-class: todo
entity-device-class: done
entity-disabled-by-default: todo
entity-translations: todo
entity-translations: done
exception-translations: todo
icon-translations: todo
reconfiguration-flow: todo
Expand All @@ -69,5 +72,8 @@ rules:

# Platinum
async-dependency: todo
inject-websession: todo
inject-websession:
status: exempt
comment: |
The integration does not use HTTP.
strict-typing: todo
2 changes: 1 addition & 1 deletion tests/components/smart_meter_b_route/test_coordinator.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are more like sensor tests tbh

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from freezegun.api import FrozenDateTimeFactory
from momonga import MomongaError
from syrupy import SnapshotAssertion
from syrupy.assertion import SnapshotAssertion

from homeassistant.components.smart_meter_b_route.const import DEFAULT_SCAN_INTERVAL
from homeassistant.const import STATE_UNAVAILABLE
Expand Down
0