mirror of
https://github.com/home-assistant/core.git
synced 2025-08-16 02:51:40 +02:00
fix after rebase
This commit is contained in:
@@ -134,7 +134,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||||||
timeout = config_entry.data.get(CONF_TIMEOUT)
|
timeout = config_entry.data.get(CONF_TIMEOUT)
|
||||||
uuid = config_entry.data.get(CONF_ID)
|
uuid = config_entry.data.get(CONF_ID)
|
||||||
|
|
||||||
async_add_devices(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
SamsungTVDevice(
|
SamsungTVDevice(
|
||||||
host, port, name, timeout, mac, broadcast, uuid, manufacturer, model
|
host, port, name, timeout, mac, broadcast, uuid, manufacturer, model
|
||||||
|
@@ -5,6 +5,7 @@ from unittest.mock import call, patch
|
|||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
ATTR_SUPPORTED_FEATURES,
|
ATTR_SUPPORTED_FEATURES,
|
||||||
|
CONF_BROADCAST_ADDRESS,
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
CONF_MAC,
|
CONF_MAC,
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
@@ -21,6 +22,7 @@ ENTITY_ID = f"{DOMAIN}.fake_name"
|
|||||||
MOCK_CONFIG = {
|
MOCK_CONFIG = {
|
||||||
SAMSUNGTV_DOMAIN: [
|
SAMSUNGTV_DOMAIN: [
|
||||||
{
|
{
|
||||||
|
CONF_BROADCAST_ADDRESS: "fake_broadcast",
|
||||||
CONF_HOST: "fake_host",
|
CONF_HOST: "fake_host",
|
||||||
CONF_MAC: "fake_mac",
|
CONF_MAC: "fake_mac",
|
||||||
CONF_NAME: "fake_name",
|
CONF_NAME: "fake_name",
|
||||||
|
Reference in New Issue
Block a user