Skip to content

Commit

Permalink
Bump Pysmlight to v0.2.0 (#136886)
Browse files Browse the repository at this point in the history
* Bump pysmlight to v0.2.0

* Update info.json fixture with radios list

* Update diagnostics snapshot
  • Loading branch information
tl-sl authored Jan 30, 2025
1 parent 52feeed commit 9eb383f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/smlight/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"documentation": "https://www.home-assistant.io/integrations/smlight",
"integration_type": "device",
"iot_class": "local_push",
"requirements": ["pysmlight==0.1.6"],
"requirements": ["pysmlight==0.2.0"],
"zeroconf": [
{
"type": "_slzb-06._tcp.local."
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion tests/components/smlight/fixtures/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,17 @@
"zb_hw": "CC2652P7",
"zb_ram_size": 152,
"zb_version": "20240314",
"zb_type": 0
"zb_type": 0,
"radios": [
{
"chip_index": 0,
"zb_hw": "CC2652P7",
"zb_version": "20240314",
"zb_type": 0,
"zb_channel": 0,
"zb_ram_size": 152,
"zb_flash_size": 704,
"radioModes": [true, true, true, false, false]
}
]
}
18 changes: 18 additions & 0 deletions tests/components/smlight/snapshots/test_diagnostics.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@
'hostname': 'SLZB-06p7',
'legacy_api': 0,
'model': 'SLZB-06p7',
'radios': list([
dict({
'chip_index': 0,
'radioModes': list([
True,
True,
True,
False,
False,
]),
'zb_channel': 0,
'zb_flash_size': 704,
'zb_hw': 'CC2652P7',
'zb_ram_size': 152,
'zb_type': 0,
'zb_version': '20240314',
}),
]),
'ram_total': 296,
'sw_version': 'v2.3.6',
'wifi_mode': 0,
Expand Down

0 comments on commit 9eb383f

Please sign in to comment.