core/homeassistant/components/bayesian
HarvsG 9d351a3c10
Improve typing and code quality in beyesian (#79603)
* strict typing

* Detail implication

* adds newline

* don't change indenting

* really dont change indenting

* Update homeassistant/components/bayesian/binary_sensor.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* typing in async_setup_platform() + remove arg

* less ambiguity

* mypy thinks Literal[False] otherwise

* clearer log

* don't use `and` assignments

* observations not values

* clarify can be None

* observation can't be none

* assert we have at least one

* make it clearer where we're using UUIDs

* remove unnecessary bool

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Unnecessary None handling

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Better type setting

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Reccomended changes.

* remove if statement not needed

* Not strict until _TrackTemplateResultInfo fixed

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-07 22:23:25 +02:00
..
translations [ci skip] Translation update 2022-10-06 00:31:54 +00:00
__init__.py
binary_sensor.py Improve typing and code quality in beyesian (#79603) 2022-10-07 22:23:25 +02:00
const.py Refactor bayesian observations using dataclass (#79590) 2022-10-04 17:16:39 +02:00
helpers.py Improve typing and code quality in beyesian (#79603) 2022-10-07 22:23:25 +02:00
manifest.json Fix Bayesian sensor to use negative observations (#67631) 2022-09-25 22:02:35 -04:00
repairs.py Improve typing and code quality in beyesian (#79603) 2022-10-07 22:23:25 +02:00
services.yaml
strings.json Add repair for missing Bayesian `prob_given_false` (#79303) 2022-09-29 13:24:06 -04:00