Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ( #106080 )
...
* Disable Ruff rules that may conflict with the formatter
* Upgrade Ruff to 0.1.8
- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8
* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Joost Lekkerkerker
d5ad01ffbe
Use shorthand attributes in Openhome ( #99629 )
2023-09-05 14:57:26 +02:00
Barry Williams
918d822ec7
Refactor openhome media player getters and attrs ( #98690 )
2023-08-23 11:31:46 +02: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
Barry Williams
aaf2846a53
Add Update Entity for Linn devices ( #95217 )
...
* added update entity for Linn devices
* Update homeassistant/components/openhome/update.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* use parent methods for version attributes
* fixed issue with mocking openhome device
* Update homeassistant/components/openhome/update.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* update entity name in tests
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-06-28 16:06:24 -04:00
Barry Williams
57c9aad9b1
Migrate Linn / Openhome integration to SSDP config flow ( #94564 )
...
* Migrate Linn / Openhome integration to SSDP config flow
* moved device initialisation into __init__
* wait for user step before adding openhome entities
* add CONFIG_SCHEMA
* cover confirmation step in config flow test
* Address comments
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-21 12:46:17 -04:00
epenet
f56bf134d2
Improve browse_media type hints in media player ( #90060 )
...
* Improve browse_media type hints in media player
* Adjust components
* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
4836404288
Improve media_player type hints in integrations ( #90029 )
...
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
Marc Mueller
b478b4fa16
Add ParamSpec TypeAliases [mypy 1.0] ( #87597 )
2023-02-07 15:56:26 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Marc Mueller
45b4b0e990
Import ParamSpec
from typing [Py310] ( #86413 )
...
* Import ParamSpec from typing [Py310]
* Update additional imports
2023-01-23 07:28:43 +01:00
epenet
5be36912b2
Use _attr_state in openhome media player ( #82833 )
2022-11-28 09:19:41 +01:00
epenet
2f8af92735
Use new media player enums [m-o] ( #78057 )
2022-09-08 22:47:59 +02:00
epenet
ea71a462d6
Improve entity type hints [o] ( #77826 )
2022-09-06 10:25:35 +02:00
Erik Montnemery
47d0cc9b09
Update integrations to pass target player when resolving media ( #72597 )
2022-05-27 09:05:06 -07:00
Marc Mueller
ac044c8ffa
Type openhome error decorator ( #70990 )
2022-04-28 17:04:19 +02:00
epenet
cac8d71764
Use EntityFeature enum in components (o**) ( #69433 )
2022-04-07 15:15:05 +02:00
Paulus Schoutsen
a109889f13
Add media source support to openhome ( #67566 )
2022-03-14 12:14:21 -07:00
epenet
5140c1fa6a
Remove invalid return values in setup methods [i-p] ( #63363 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-04 11:30:13 +01:00
Marc Mueller
1bcf39517a
Use assignment expressions 13 ( #57938 )
2021-10-21 08:27:42 +02:00
Barry Williams
5ac81ccb4c
Openhome component now uses asyncio and handles unavailability ( #49574 )
2021-05-26 09:39:44 -07:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere ( #50034 )
2021-05-03 09:34:28 -07:00
Franck Nijhof
fb849b81b5
Rewrite of not a == b occurances ( #48132 )
2021-03-20 01:27:04 +01:00
springstan
228e167b03
Remove unnecessary should poll from media player classes ( #41220 )
2020-10-04 21:26:09 +02:00
Barry Williams
b6407f77da
Add service to openhome to invoke a pin ( #31119 )
...
Setup platform async
Use entity services
Store UUID in default data rather than entity
2020-05-30 14:40:35 +02:00
Erik Montnemery
62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity ( #34592 )
2020-04-25 18:00:57 +02:00
springstan
db72039b8f
Use list literals ( #33659 )
2020-04-04 23:14:47 +02:00
Barry Williams
233568ac29
If device has volume disabled, the volume will be None
. However in these ( #32702 )
...
instances whenever the volume was requested a division calculation was made
resulting in a TypeError. The volume adjustment from `0-100` to `0-1` is now
calculated during the `update()` method.
2020-03-12 09:54:25 +01:00
Barry Williams
afb1b0cd3c
Add play media support and Spotify control to Openhome ( #28698 )
2020-01-18 18:37:39 +01:00
springstan
0416e5b0fc
Move imports to top for openhome ( #29369 )
2019-12-03 15:47:22 -08:00
Barry Williams
afaa464142
If volume disabled do not enable support ( #28635 )
2019-11-25 22:34:45 -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
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02: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