Don't use storage collection helper in ExposedEntities (#92396)

* Don't use storage collection helper in ExposedEntities

* Fix tests
This commit is contained in:
Erik Montnemery 2023-05-03 12:39:22 +02:00 committed by GitHub
parent 7aa94f97c0
commit 4860a8d1e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 248 additions and 299 deletions

View file

@ -111,7 +111,7 @@ class GoogleConfig(AbstractConfig):
"""Return if states should be proactively reported."""
return self._config.get(CONF_REPORT_STATE)
async def should_expose(self, state) -> bool:
def should_expose(self, state) -> bool:
"""Return if entity should be exposed."""
expose_by_default = self._config.get(CONF_EXPOSE_BY_DEFAULT)
exposed_domains = self._config.get(CONF_EXPOSED_DOMAINS)