mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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."""
|
||||
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:
|
||||
cookie = hass.config.path(COOKIE)
|
||||
session = upsmychoice.get_session(
|
||||
|
Loading…
x
Reference in New Issue
Block a user