G Johansson
7671ab0bb7
Remove platform yaml from myStrom ( #103378 )
2023-11-04 16:41:59 +01:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Joost Lekkerkerker
1ceb536dfb
Migrate MyStrom to has entity name ( #96540 )
2023-07-18 20:53:37 +02:00
Erik Montnemery
08a5f63474
Add deprecated_yaml issue to the homeassistant integration ( #95980 )
...
* Add deprecated_yaml issue to the homeassistant integration
* Update test
* Update homeassistant/components/homeassistant/strings.json
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Include DOMAIN in issue_id
* Update test
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-07-10 13:06:52 +02:00
Paul Frank
c67f32b924
Add config flow to mystrom ( #74719 )
...
* rebase
* fixed review comments
* fix test
* Update tests
* increase test coverage
* implement some review comments
* Enhance device check for old FWs and add tests
* Reworked exception handling
* small code optimizations
* fix test
* Increase test coverage
* Update __init__.py
changed from hass.config_entries.async_setup_platforms(entry, PLATFORMS) to await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
* Update __init__.py
remove spaces
* Bump python-mystrom to 2.2.0
* Migrate to get_device_info from python-mystrom
* Migrate to get_device_info from python-mystrom
* Update __init__.py
* update requirements_all.txt
* update config_flow
* fix tests
* Update homeassistant/components/mystrom/__init__.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Implemented review changes
* increase test coverage
* Implemented user defined title
* implemented user defined title
* Additional review comments
* fix test
* fix linter
* fix linter
* Update homeassistant/components/mystrom/models.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* fix review comments
* fix missing import
* simplify
* Update homeassistant/components/mystrom/__init__.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/__init__.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_init.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_init.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_init.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_init.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/switch.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* fix review comments
* fix review comments
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* fix review comment
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/mystrom/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-06-06 14:16:27 +02:00
Paul Frank
0bf9bb15f6
Use entity attributes in mystrom ( #93591 )
...
* Migrated proprties to _attr_
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/switch.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/mystrom/switch.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* review comment
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-05-26 16:22:59 +02:00
epenet
7b1463e03d
Improve type hints in light [i-r] ( #75943 )
2022-07-31 13:53:22 +02:00
epenet
01dffc3447
Use light enums in mystrom ( #70792 )
2022-04-26 15:31:05 +03:00
epenet
f68764a053
Use ColorMode enum in mystrom ( #70526 )
2022-04-23 09:24:43 -10:00
Erik Montnemery
cbb76824e9
Migrate mystrom light to color_mode ( #69428 )
2022-04-07 14:53:23 +02:00
epenet
277562bc38
Add light setup type hints [l-r] ( #63292 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:11:59 +01:00
Andreas Sansano
d827b2ff56
Add myStrom LED Strip support extending rgblamp bulb_type ( #57322 )
2021-10-27 10:11:26 +02:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
Fabian Affolter
637ff5698c
Move myStrom light and switch to async ( #34079 )
2020-04-23 16:00:17 -07:00
springstan
be316af303
Move imports to top for mystrom ( #29356 )
2019-12-03 15:44:50 -08:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ( #22096 )
...
* Consolidate
* Fix tests
* Update imports
* Fix import
* Use importlib because integration and package share name
* Fix more tests
* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00