hass-core/homeassistant
nachonam 2d510bfe0d
Add camera platform to Freebox (#88104)
* Add Freebox cameras

* Apply suggestions from code review

add code corrections after PR review

Co-authored-by: Quentame <polletquentin74@me.com>

* Update base_class.py

* add some code syntax corrections add unit tests

* add unit tests

* add syntax changes

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/base_class.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/router.py

Co-authored-by: Quentame <polletquentin74@me.com>

* clear code  and add minor changes

* correct syntax error and check home granted access

* typing functions

* Update tests/components/freebox/conftest.py

don't needed, and will fix tests.

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Rename _volume_micro variable

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Use const not literal

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

set to true not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

use _attr_supported_features instead _supported_features

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

overload the entity with command_flip property and set_flip not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Cameras does not default to False,

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

delete this function because is not needed

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* consts,  rollback _command flip is protected var

* VALUE_NOT_SET does not exists anymore

* Use HOME_COMPATIBLE_PLATFORMS

* Rename FreeboxHomeBaseClass to FreeboxHomeEntity

* Update Freebox Home comment

* Use CATEGORY_TO_MODEL to set model attr of FreeboxHomeEntity

* Use Home API from the router

* Add SERVICE_FLIP const

* Use SERVICE_FLIP const

* Fix typo in HOME_COMPATIBLE_PLATFORMS

* fix somme code issues

* use SERVICE_FLIP (lost in merge)

* use _attr_device_info

* clear code

* HOME_COMPATIBLE_PLATFORMS is a list

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/config_flow.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* clear config_flow permission

* Update homeassistant/components/freebox/home_base.py

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* add untested files to. coveragerc

* clear unused attributes

* add not tested file camera.py

* clear unusued const

* add extra_state_attributes

* Update .coveragerc

Co-authored-by: Quentame <polletquentin74@me.com>

* Update homeassistant/components/freebox/camera.py

Co-authored-by: Quentame <polletquentin74@me.com>

* fetch _flip

* del flip service

* add device_info via_device

* Update .coveragerc

* Update .coveragerc

* Update .coveragerc

* Update .coveragerc

* Remove flip reference

* Fix issue on router without Home API

* Fix "Home access is not granted" log repeats every 30s

* Fix sensor device_info

---------

Co-authored-by: Quentame <polletquentin74@me.com>
2023-04-26 00:03:39 +02:00
..
auth Cache decode of JWT tokens (#90013) 2023-03-22 16:03:41 -10:00
backports Add Self typing (1) [mypy 1.0] (#87598) 2023-02-06 22:29:47 -06:00
brands Remove xbox_live integration (#90592) 2023-03-31 14:30:04 -04:00
components Add camera platform to Freebox (#88104) 2023-04-26 00:03:39 +02:00
generated Add Anova integration (#86254) 2023-04-22 18:05:14 -05:00
helpers Move TriggerBaseEntity into helpers (#91945) 2023-04-25 09:56:40 +02:00
scripts Adjust registry access in scripts (#88884) 2023-02-28 21:58:47 -05:00
util Use order in preferred regions list (#91959) 2023-04-24 14:12:38 -04:00
__init__.py
__main__.py Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
block_async_io.py Update mypy to 1.1.1 (#89268) 2023-03-08 22:57:54 +01:00
bootstrap.py Ensure dependencies are awaited correctly when setting up integrations (#91454) 2023-04-21 08:33:50 +02:00
config.py Add ComponentProtocol to improve type checking (#90586) 2023-03-31 14:19:58 -04:00
config_entries.py Remove deprecated async_setup_platforms (#91929) 2023-04-23 22:38:35 -05:00
const.py Bump version to 2023.5.0dev0 (#90477) 2023-03-29 16:46:32 -04:00
core.py Add a name to the background service call tasks (#91252) 2023-04-11 19:23:25 -10:00
data_entry_flow.py Use slots for discovery dataclasses (#90751) 2023-04-04 12:44:59 +02:00
exceptions.py Make dataclasses in HA core slotted (#91208) 2023-04-11 07:58:28 -10:00
loader.py Make dataclasses in HA core slotted (#91208) 2023-04-11 07:58:28 -10:00
package_constraints.txt Bump hass-nabucasa from 0.65.0 to 0.66.1 (#92020) 2023-04-25 21:00:23 +02:00
requirements.py Core code styling improvements (#85963) 2023-01-15 23:00:51 +01:00
runner.py Make dataclasses in HA core slotted (#91208) 2023-04-11 07:58:28 -10:00
setup.py Ensure dependencies are awaited correctly when setting up integrations (#91454) 2023-04-21 08:33:50 +02:00
strings.json Add state translations for helpers (#90356) 2023-03-27 16:19:25 -04:00