mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Deprecates ups integration (ADR-0004) (#25746)
This commit is contained in:
parent
d3aac13065
commit
b696f9ce5e
@ -40,6 +40,12 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
"""Set up the UPS platform."""
|
"""Set up the UPS platform."""
|
||||||
import upsmychoice
|
import upsmychoice
|
||||||
|
|
||||||
|
_LOGGER.warning(
|
||||||
|
"The ups integration is deprecated and will be removed "
|
||||||
|
"in Home Assistant 0.100.0. For more information see ADR-0004:"
|
||||||
|
"https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md"
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cookie = hass.config.path(COOKIE)
|
cookie = hass.config.path(COOKIE)
|
||||||
session = upsmychoice.get_session(
|
session = upsmychoice.get_session(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user