mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Log bayesian sensor name for unavailable observations (#152039)
This commit is contained in:
@@ -497,16 +497,18 @@ class BayesianBinarySensor(BinarySensorEntity):
|
|||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
(
|
(
|
||||||
"Observation for entity '%s' returned None, it will not be used"
|
"Observation for entity '%s' returned None, it will not be used"
|
||||||
" for Bayesian updating"
|
" for updating Bayesian sensor '%s'"
|
||||||
),
|
),
|
||||||
observation.entity_id,
|
observation.entity_id,
|
||||||
|
self.entity_id,
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
(
|
(
|
||||||
"Observation for template entity returned None rather than a valid"
|
"Observation for template entity returned None rather than a valid"
|
||||||
" boolean, it will not be used for Bayesian updating"
|
" boolean, it will not be used for updating Bayesian sensor '%s'"
|
||||||
),
|
),
|
||||||
|
self.entity_id,
|
||||||
)
|
)
|
||||||
# the prior has been updated and is now the posterior
|
# the prior has been updated and is now the posterior
|
||||||
return prior
|
return prior
|
||||||
|
|||||||
Reference in New Issue
Block a user