Fivem code quality improvements (#66086)
* specify config type * move coordinator outside try block * rename gamename to game_name * remove log in __init__ * Remove logging and minify update * Add types to parameters * Remove name from device * Remove update listener * Remove status icon * Dont allow duplicate entries * Use default translation string * Remove online and port from coordinator
This commit is contained in:
parent
dad1dbeb6e
commit
d574e54fd8
7 changed files with 57 additions and 79 deletions
|
@ -9,7 +9,7 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import FiveMEntity, FiveMEntityDescription
|
||||
from .const import DOMAIN, ICON_STATUS, NAME_STATUS
|
||||
from .const import DOMAIN, NAME_STATUS
|
||||
|
||||
|
||||
class FiveMBinarySensorEntityDescription(
|
||||
|
@ -22,7 +22,6 @@ BINARY_SENSORS: tuple[FiveMBinarySensorEntityDescription, ...] = (
|
|||
FiveMBinarySensorEntityDescription(
|
||||
key=NAME_STATUS,
|
||||
name=NAME_STATUS,
|
||||
icon=ICON_STATUS,
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue