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.core import HomeAssistant
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
|
|
||||||
DOMAIN = "froeling_modbus"
|
DOMAIN = "froeling_lambdatronic_modbus"
|
||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class FroelingBinarySensor(BinarySensorEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
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}"
|
return f"{self._device_name} {translated_name}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -99,7 +99,7 @@ class FroelingSensor(BinarySensorEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
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}"
|
return f"{self._device_name} {translated_name}"
|
||||||
|
|
||||||
@property
|
@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",
|
"name": "Froeling Lambdatronic Modbus",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"documentation": "https://github.com/GyroGearl00se/hacs_froeling_lambdatronic_modbus",
|
"documentation": "https://github.com/GyroGearl00se/hacs_froeling_lambdatronic_modbus",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class FroelingNumber(NumberEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
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}"
|
return f"{self._device_name} {translated_name}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class FroelingSensor(SensorEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
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}"
|
return f"{self._device_name} {translated_name}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -263,7 +263,7 @@ class FroelingTextSensor(SensorEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
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}"
|
return f"{self._device_name} {translated_name}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user