Batch of Component(s) -> Integration(s) (#24972)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-07-05 15:24:26 -07:00
1 parent e75c9efb3f
commit 31f569ada9
27 files changed
+34 -34

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ def is_on(hass, entity_id=None):
continue
if not hasattr(component, 'is_on'):
_LOGGER.warning("Component %s has no is_on method.", domain)
_LOGGER.warning("Integration %s has no is_on method.", domain)
continue
if component.is_on(ent_id):
+1 -1
View File
@@ -186,7 +186,7 @@ def _get_camera_from_entity_id(hass, entity_id):
component = hass.data.get(DOMAIN)
if component is None:
raise HomeAssistantError('Camera component not set up')
raise HomeAssistantError('Camera integration not set up')
camera = component.get_entity(entity_id)
@@ -286,7 +286,7 @@ async def async_setup_platform(hass: HomeAssistantType, config: ConfigType,
"""
_LOGGER.warning(
'Setting configuration for Cast via platform is deprecated. '
'Configure via Cast component instead.')
'Configure via Cast integration instead.')
await _async_setup_platform(
hass, config, async_add_entities, discovery_info)
+2 -2
View File
@@ -59,7 +59,7 @@ def setup(hass, config):
conf.get(CONF_HOST), conf.get(CONF_PORT))
try:
_LOGGER.debug("Ebusd component setup started")
_LOGGER.debug("Ebusd integration setup started")
import ebusdpy
ebusdpy.init(server_address)
hass.data[DOMAIN] = EbusdData(server_address, circuit)
@@ -74,7 +74,7 @@ def setup(hass, config):
hass.services.register(
DOMAIN, SERVICE_EBUSD_WRITE, hass.data[DOMAIN].write)
_LOGGER.debug("Ebusd component setup completed")
_LOGGER.debug("Ebusd integration setup completed")
return True
except (socket.timeout, socket.error):
return False
@@ -162,7 +162,7 @@ def async_register_built_in_panel(hass, component_name,
panels = hass.data.setdefault(DATA_PANELS, {})
if panel.frontend_url_path in panels:
_LOGGER.warning("Overwriting component %s", panel.frontend_url_path)
_LOGGER.warning("Overwriting integration %s", panel.frontend_url_path)
panels[panel.frontend_url_path] = panel
+2 -2
View File
@@ -62,7 +62,7 @@ def trusted_networks_deprecated(value):
return value
_LOGGER.warning(
"Configuring trusted_networks via the http component has been"
"Configuring trusted_networks via the http integration has been"
" deprecated. Use the trusted networks auth provider instead."
" For instructions, see https://www.home-assistant.io/docs/"
"authentication/providers/#trusted-networks")
@@ -75,7 +75,7 @@ def api_password_deprecated(value):
return value
_LOGGER.warning(
"Configuring api_password via the http component has been"
"Configuring api_password via the http integration has been"
" deprecated. Use the legacy api password auth provider instead."
" For instructions, see https://www.home-assistant.io/docs/"
"authentication/providers/#legacy-api-password")
@@ -154,7 +154,7 @@ class IFTTTAlarmPanel(alarm.AlarmControlPanel):
data = {ATTR_EVENT: event}
self.hass.services.call(IFTTT_DOMAIN, SERVICE_TRIGGER, data)
_LOGGER.debug("Called IFTTT component to trigger event %s", event)
_LOGGER.debug("Called IFTTT integration to trigger event %s", event)
if self._optimistic:
self._state = state
+1 -1
View File
@@ -242,7 +242,7 @@ async def async_start(hass: HomeAssistantType, discovery_topic, hass_config,
component, node_id, object_id = match.groups()
if component not in SUPPORTED_COMPONENTS:
_LOGGER.warning("Component %s is not supported", component)
_LOGGER.warning("Integration %s is not supported", component)
return
if payload:
+1 -1
View File
@@ -77,7 +77,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
if variable in DEPRECATED_WEATHER_VARS:
wstr = ("Nest no longer provides weather data like %s. See "
"https://home-assistant.io/components/#weather "
"for a list of other weather components to use." %
"for a list of other weather integrations to use." %
variable)
else:
wstr = (variable + " is no a longer supported "
@@ -471,7 +471,7 @@ class LeafEntity(Entity):
def log_registration(self):
"""Log registration."""
_LOGGER.debug(
"Registered %s component for VIN %s",
"Registered %s integration for VIN %s",
self.__class__.__name__, self.car.leaf.vin)
@property
@@ -81,7 +81,7 @@ class LeafRangeSensor(LeafEntity):
def log_registration(self):
"""Log registration."""
_LOGGER.debug(
"Registered LeafRangeSensor component with HASS for VIN %s",
"Registered LeafRangeSensor integration with HASS for VIN %s",
self.car.leaf.vin)
@property
@@ -32,7 +32,7 @@ class LeafClimateSwitch(LeafEntity, ToggleEntity):
def log_registration(self):
"""Log registration."""
_LOGGER.debug(
"Registered LeafClimateSwitch component with HASS for VIN %s",
"Registered LeafClimateSwitch integration with HASS for VIN %s",
self.car.leaf.vin)
@property
@@ -353,7 +353,7 @@ def _pianobar_exists():
return True
_LOGGER.warning(
"The Pandora component depends on the Pianobar client, which "
"The Pandora integration depends on the Pianobar client, which "
"cannot be found. Please install using instructions at "
"https://home-assistant.io/components/media_player.pandora/")
return False
+1 -1
View File
@@ -72,7 +72,7 @@ class SigfoxAPI:
_LOGGER.error(
"Unable to login to Sigfox API, error code %s", str(
response.status_code))
raise ValueError('Sigfox component not set up')
raise ValueError('Sigfox integration not set up')
return True
def get_device_types(self):
+3 -3
View File
@@ -55,7 +55,7 @@ def setup(hass, config):
password, host, host_password)
if not smappee.is_local_active and not smappee.is_remote_active:
_LOGGER.error("Neither Smappee server or local component enabled.")
_LOGGER.error("Neither Smappee server or local integration enabled.")
return False
hass.data[DATA_SMAPPEE] = smappee
@@ -85,7 +85,7 @@ class Smappee:
"Smappee server authentication failed (%s)",
error)
else:
_LOGGER.warning("Smappee server component init skipped.")
_LOGGER.warning("Smappee server integration init skipped.")
if host is not None:
try:
@@ -98,7 +98,7 @@ class Smappee:
"Local Smappee device authentication failed (%s)",
error)
else:
_LOGGER.warning("Smappee local component init skipped.")
_LOGGER.warning("Smappee local integration init skipped.")
self.locations = {}
self.info = {}
@@ -63,7 +63,7 @@ async def async_migrate_entry(hass: HomeAssistantType, entry: ConfigEntry):
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
"""Initialize config entry which represents an installed SmartApp."""
if not validate_webhook_requirements(hass):
_LOGGER.warning("The 'base_url' of the 'http' component must be "
_LOGGER.warning("The 'base_url' of the 'http' integration must be "
"configured and start with 'https://'")
return False
+1 -1
View File
@@ -44,7 +44,7 @@ def request_stream(hass, stream_source, *, fmt='hls',
keepalive=False, options=None):
"""Set up stream with token."""
if DOMAIN not in hass.config.components:
raise HomeAssistantError("Stream component is not set up.")
raise HomeAssistantError("Stream integration is not set up.")
if options is None:
options = {}
+1 -1
View File
@@ -35,7 +35,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
zapi = hass.data[zabbix.DOMAIN]
if not zapi:
_LOGGER.error("zapi is None. Zabbix component hasn't been loaded?")
_LOGGER.error("zapi is None. Zabbix integration hasn't been loaded?")
return False
_LOGGER.info("Connected to Zabbix API Version %s", zapi.api_version())