-
-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Ios notify camera fix #9427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ios notify camera fix #9427
Changes from 4 commits
c281019
ca6c7ef
592ffd7
8c40640
a3fef9c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,7 @@ | |
| }, extra=vol.ALLOW_EXTRA) | ||
|
|
||
| ATTR_EMULATED_HUE = 'emulated_hue' | ||
| ATTR_EMULATED_HUE_HIDDEN = 'emulated_hue_hidden' | ||
|
|
||
|
|
||
| def setup(hass, yaml_config): | ||
|
|
@@ -223,17 +224,24 @@ def is_entity_exposed(self, entity): | |
|
|
||
| domain = entity.domain.lower() | ||
| explicit_expose = entity.attributes.get(ATTR_EMULATED_HUE, None) | ||
|
|
||
| explicit_hidden = entity.attributes.get (ATTR_EMULATED_HUE_HIDDEN, None) | ||
| if explicit_expose is True or explicit_hidden is False : | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whitespace before ':' |
||
| expose = True | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indentation is not a multiple of four |
||
| else: | ||
| expose = False | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indentation is not a multiple of four |
||
| if explicit_expose: | ||
| _LOGGER.warning("The attribute 'emulated_hue' is deprecated and will be removed in a" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (97 > 79 characters) |
||
| "future version use 'emulated_hue_hidden' instead") | ||
| domain_exposed_by_default = \ | ||
| self.expose_by_default and domain in self.exposed_domains | ||
|
|
||
| # Expose an entity if the entity's domain is exposed by default and | ||
| # the configuration doesn't explicitly exclude it from being | ||
| # exposed, or if the entity is explicitly exposed | ||
| is_default_exposed = \ | ||
| domain_exposed_by_default and explicit_expose is not False | ||
| domain_exposed_by_default and expose is not False | ||
|
|
||
| return is_default_exposed or explicit_expose | ||
| return is_default_exposed or expose | ||
|
|
||
| def _load_numbers_json(self): | ||
| """Set up helper method to load numbers json.""" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace before '('
line too long (80 > 79 characters)