* Add config option for controlling Ollama think parameter
Allows enabling or disable thinking for supported models. Neither option
will dislay thinking content in the chat. Future support for displaying
think content will require frontend changes for formatting.
* Add thinking strings
* 2nd attempt to add energysensors to Adax component
* Ruff format changes
* I did not reuse the first call for information.. Now i do..
* Fixed some tests after the last change
* Remove extra attributes
* Dont use info logger
* aggregate if not rooms
* Raise error if no rooms are discovered
* Move code out of try catch
* Catch more specific errors
* removed platforms from manifest.json
* remove attribute translation key
* Getting rid of the summation of energy used..
* Fixed errorness in test
* set roomproperty in Init
* concatenated the two functions
* use raw Wh values and suggest a konversion for HomeAssistant
* Use snapshot testing
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/strings.json
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Removing un needed logg
* Removing initial value
* Changing tests to snapshot_platform
* Removing available property from sensor.py and doing a ruff formating..
* Fix a broken indent
* Add fix for coordinator updates in Adax energisensor and namesetting
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/coordinator.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* generated snapshots
* Ruff changes
* Even more ruff changes, that did not appear on ruff command locally
* Trying to fix CI updates
* Update homeassistant/components/adax/sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
* Improve AdaxEnergySensor by simplifying code and ensuring correct handling of energy values. Adjust how room and device information is retrieved to avoid duplication and improve readability.
* Removed a test för device_id as per request..
* Make supersure that value is int and not "Any"
* removing executable status
* Update tests/components/adax/test_sensor.py
Co-authored-by: Josef Zweck <josef@zweck.dev>
---------
Co-authored-by: Josef Zweck <josef@zweck.dev>
* added config flow for telegram integration
* added chat id in config entry title and added config flow tests
* fix import issue when there are no notifiers in configuration.yaml
* Revert "fix import issue when there are no notifiers in configuration.yaml"
This reverts commit b5b83e2a9a.
* Revert "added chat id in config entry title and added config flow tests"
This reverts commit 30c2bb4ae4.
* Revert "added config flow for telegram integration"
This reverts commit 1f44afcd45.
* added config and subentry flows
* added options flow to configure webhooks
* refactor module setup so it only load once
* moved service registration from async_setup_entry to async_setup
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* import only last yaml config
* import only last yaml config
* reduced scope of try-block
* create issue when importing from yaml
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* handle options update by reloading telegram bot
* handle import errors for create issue
* include bot's platform when creating issues
* handle options reload without needing HA restart
* moved url and trusted_networks inputs from options to new config flow step
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* minor fixes
* refactor config flow
* moved constants to const.py
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* added options flow tests
* Update homeassistant/components/telegram_bot/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/telegram_bot/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* added reconfigure flow
* added reauth flow
* added tests for reconfigure flow
* added tests for reauth
* added tests for subentry flow
* added tests for user and webhooks flow with error scenarios
* added import flow tests
* handle webhook deregister exception
* added config entry id to all services
* fix leave chat bug
* Update homeassistant/components/telegram_bot/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* removed leave chat bug fixes
* Update homeassistant/components/telegram_bot/strings.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* handle other error types for import
* reuse translations
* added test for duplicated config entry for user step
* added tests
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Youtube Component Support SensorStateClass in sensor.py
Added support for long term statistics by including the appropriate state class type for subscriber and view counts.
* Update sensor.py
* Fix
---------
Co-authored-by: Joostlek <joostlek@outlook.com>
* Add default device class display precision for Sensor
* Renaming, docstrings, cleanup
* Simplify units list
* Fix tests
* Fix missing precision when suggested is specified
* Update snapshots
* Fix when unit of measurement is not valid
* Fix tests
* Fix deprecated unit usage
* Fix goalzero tests
The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.
Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.
* Fix metoffice
* Fix smartthings
* Add default sensor data for Tesla Wall Connector tests
* Update snapshots
* Revert spaces
* Update smartthings snapshots
* Add missing sensor mock for tesla wall connector
* Address review comments
* Add doc comment
* Add cap to doc comment
* Update comment
* Update snapshots
* Update comment
* Add WS command to help reset custom entity_id
* Calculate suggested object id from entity properties
* Fix logic and add additional tests
* Adjust test
* Update folder_watcher test
* Handle current entity id matches the automatic entity id
* Don't store calculated_object_id
* Update snapshots
* Update snapshots
* Update test
* Tweak logic for reusing current entity_id
* Improve test
* Don't assign same entity_id to several entities
* Prioritize custom entity name
* Update snapshots
* Update snapshots
* initial
* remove dupe name definition
* snapshot update
* name def updates
* test update for new entity name
* remove attributes
* icon translations
* merge fixes
* Snapshot update post merge
* update to class initialisation
* move entity delete to coordinator
* remove some comments
* move known_alarms to coordinator
* test_switch update for syrupy change
* listener and sets
* check self.available
* remove refresh from conftest
* test update
* test tweak
* move listener to switch platform
* updates revew
* SWITCH_DOMAIN
* Add first status sensor and coordinator
* New snapshot
* Add comment
* Add test for forbidden status endpoint
* Changed comment
* Fixed translation
* Minor changes and code optimization
* Add common translation; minor tweaks
* Moved translation from common to integration
* Use device class transation
* WIP
* Test api push
* Use constants
* Use callbacks registered with mock
* Add comment
* Adress review comments
* Empty commit
* Fix tests
* Updates after review
* Add user picture
* FYTA integration: Add separate entities for both default and user plant images (#12)
* Refactor FYTA integration to provide both default and user plant images as separate entities
* Refactor FYTA tests by removing unused CONF_USER_IMAGE option and related test cases
* Update FytaPlantImageEntity to set entity name based on image type
* Refactor FYTA image tests to accommodate separate plant and user image entities, updating assertions and snapshots accordingly.
* Enhance FYTA image handling by introducing FytaImageEntityDescription for better separation of plant and user images, and update image URL retrieval logic. Additionally, add localized strings for image entities in strings.json.
* Correct typo
* Update FYTA image snapshots to reflect changes in translation keys for plant and user images.
* Update homeassistant/components/fyta/image.py
* Update homeassistant/components/fyta/image.py
---------
Co-authored-by: dontinelli <73341522+dontinelli@users.noreply.github.com>
* Update QS + ruff
* Revert MINOR_VERSION increase and remove obsolete migration test
* Update snapshot
* Resolve comments
* Update snapshot
* Fix
---------
Co-authored-by: Alexander <chimera88@gmx.de>
* add support for air purifier
* add unit tests for air purifier
* fix aqi translation
* fix aqi translation
* add air purifier table
* fix air purifier
* remove init and add options for aqi level
* initial
* initial
* add tests
* Update for list return
* translate exception
* tests for errors
* review tweaks
* test fix
* force content_type to lowercase
* Allow media_content_type = None
* new test
* Shelly RPC sub-devices
* Better varaible name
* Add get_rpc_device_info helper
* Revert channel name changes
* Use get_rpc_device_info
* Add get_rpc_device_info helper
* Use get_block_device_info
* Use helpers in the button platform
* Fix channel name and roller mode for block devices
* Fix EM3 gen1
* Fix channel name for RPC devices
* Revert test changes
* Fix/improve test_block_get_block_channel_name
* Fix test_get_rpc_channel_name_multiple_components
* Fix tests
* Fix tests
* Fix tests
* Use key instead of index to generate sub-device identifier
* Improve logic for Pro RGBWW PM
* Split channels for em1
* Better channel name
* Cleaning
* has_entity_name is True
* Add get_block_sub_device_name() function
* Improve block functions
* Add get_rpc_sub_device_name() function
* Remove _attr_name
* Remove name for button with device class
* Fix names of virtual components
* Better Input name
* Fix get_rpc_channel_name()
* Fix names for Inputs
* get_rpc_channel_name() improvement
* Better variable name
* Clean RPC functions
* Fix input_name type
* Fix test
* Fix entity_ids for Blu Trv
* Fix get_block_channel_name()
* Fix for Blu Trv, once again
* Revert name for reboot button
* Fix button tests
* Fix tests
* Fix coordinator tests
* Fix tests for cover platform
* Fix tests for event platform
* Fix entity_ids in init tests
* Fix get_block_channel_name() for lights
* Fix tests for light platform
* Fix test for logbook
* Update snapshots for number platform
* Fix tests for sensor platform
* Fix tests for switch platform
* Fix tests for utils
* Uncomment
* Fix tests for flood
* Fix Valve entity name
* Fix climate tests
* Fix test for diagnostics
* Fix tests for init
* Remove old snapshots
* Add tests for 2PM Gen3
* Add comment
* More tests
* Cleaning
* Clean fixtures
* Update tests
* Anonymize coordinates in fixtures
* Split Pro 3EM entities into sub-devices
* Make sub-device names more unique
* 3EM (gen1) does not support sub-devices
* Coverage
* Rename "device temperature" sensor to the "relay temperature"
* Update tests after rebase
* Support sub-devices for 3EM (gen1)
* Mark has-entity-name rule as done 🎉
* Rename `relay temperature` to `temperature`
* Add reauth and reconfigure
* Reauth and reconfigure in different functions
* Add duplicate check
* Add test for reconfigure duplicate
* Removed seconds config entry fixture