mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add configuration_url to integration (#60565)
This commit is contained in:
parent
bb92dd2467
commit
222da7e2d1
@ -12,6 +12,7 @@ from homeassistant.components.sensor import (
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CURRENCY_EURO,
|
||||
DEVICE_CLASS_CURRENT,
|
||||
DEVICE_CLASS_ENERGY,
|
||||
@ -268,6 +269,7 @@ class P1MonitorSensorEntity(CoordinatorEntity, SensorEntity):
|
||||
identifiers={
|
||||
(DOMAIN, f"{coordinator.config_entry.entry_id}_{service_key}")
|
||||
},
|
||||
configuration_url=f"http://{coordinator.config_entry.data[CONF_HOST]}",
|
||||
manufacturer="P1 Monitor",
|
||||
name=service,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user