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 |