Make Brother uptime sensor disabled by default (#43478)

This commit is contained in:
Maciej Bieniek 2020-11-22 22:42:16 +01:00 committed by GitHub
parent 20db980695
commit 885e393df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 76 additions and 14 deletions

View file

@ -15,6 +15,7 @@ from .const import (
ATTR_DRUM_COUNTER,
ATTR_DRUM_REMAINING_LIFE,
ATTR_DRUM_REMAINING_PAGES,
ATTR_ENABLED,
ATTR_ICON,
ATTR_LABEL,
ATTR_MAGENTA_DRUM_COUNTER,
@ -139,4 +140,4 @@ class BrotherPrinterSensor(CoordinatorEntity):
@property
def entity_registry_enabled_default(self):
"""Return if the entity should be enabled when first added to the entity registry."""
return True
return SENSOR_TYPES[self.kind][ATTR_ENABLED]