fix domain naming
This commit is contained in:
@@ -6,7 +6,7 @@ from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.const import Platform
|
||||
|
||||
DOMAIN = "froeling_modbus"
|
||||
DOMAIN = "froeling_lambdatronic_modbus"
|
||||
|
||||
async def async_setup(hass, config):
|
||||
return True
|
||||
|
||||
@@ -59,7 +59,7 @@ class FroelingBinarySensor(BinarySensorEntity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
translated_name = self._translations.get(f"component.froeling_modbus.entity.binary_sensor.{self._entity_id}.name", self._entity_id)
|
||||
translated_name = self._translations.get(f"component.froeling_lambdatronic_modbus.entity.binary_sensor.{self._entity_id}.name", self._entity_id)
|
||||
return f"{self._device_name} {translated_name}"
|
||||
|
||||
@property
|
||||
@@ -99,7 +99,7 @@ class FroelingSensor(BinarySensorEntity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
translated_name = self._translations.get(f"component.froeling_modbus.entity.binary_sensor.{self._entity_id}.name", self._entity_id)
|
||||
translated_name = self._translations.get(f"component.froeling_lambdatronic_modbus.entity.binary_sensor.{self._entity_id}.name", self._entity_id)
|
||||
return f"{self._device_name} {translated_name}"
|
||||
|
||||
@property
|
||||
|
||||
@@ -1 +1 @@
|
||||
DOMAIN = "froeling_modbus"
|
||||
DOMAIN = "froeling_lambdatronic_modbus"
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"domain": "froeling_modbus",
|
||||
"domain": "froeling_lambdatronic_modbus",
|
||||
"name": "Froeling Lambdatronic Modbus",
|
||||
"version": "1.0.0",
|
||||
"documentation": "https://github.com/GyroGearl00se/hacs_froeling_lambdatronic_modbus",
|
||||
|
||||
@@ -81,7 +81,7 @@ class FroelingNumber(NumberEntity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
translated_name = self._translations.get(f"component.froeling_modbus.entity.number.{self._entity_id}.name", self._entity_id)
|
||||
translated_name = self._translations.get(f"component.froeling_lambdatronic_modbus.entity.number.{self._entity_id}.name", self._entity_id)
|
||||
return f"{self._device_name} {translated_name}"
|
||||
|
||||
@property
|
||||
|
||||
@@ -111,7 +111,7 @@ class FroelingSensor(SensorEntity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
translated_name = self._translations.get(f"component.froeling_modbus.entity.sensor.{self._entity_id}.name", self._entity_id)
|
||||
translated_name = self._translations.get(f"component.froeling_lambdatronic_modbus.entity.sensor.{self._entity_id}.name", self._entity_id)
|
||||
return f"{self._device_name} {translated_name}"
|
||||
|
||||
@property
|
||||
@@ -263,7 +263,7 @@ class FroelingTextSensor(SensorEntity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
translated_name = self._translations.get(f"component.froeling_modbus.entity.sensor.{self._entity_id}.name", self._entity_id)
|
||||
translated_name = self._translations.get(f"component.froeling_lambdatronic_modbus.entity.sensor.{self._entity_id}.name", self._entity_id)
|
||||
return f"{self._device_name} {translated_name}"
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user