Commit Graph

115 Commits (92b5bcffb6a3d4814d218a4559f301d4f6c611ba)

Author SHA1 Message Date
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json () 2022-01-28 13:37:53 -08:00
epenet 18056f3a8a
Add init type hints [t-u] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 22:06:11 -08:00
epenet 92ace6c2e8
Ensure service calls are typed [s-u] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:23:42 +01:00
J. Nick Koston 41bac5ccbb
Fix non-threadsafe call to async_fire in telegram_bot ()
Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478
2021-12-11 11:20:58 +01:00
Marc Mueller c979e89b70
Use assignment expressions 14 () 2021-10-21 08:26:01 +02:00
Ville Skyttä d8d34fdd3b
Prefer HTTPStatus over int in HA view JSON functions ()
* Prefer HTTPStatus over int in HA view JSON functions

* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
Joakim Sørensen 4f33679255
Fix url lookup in telegram_bot webhook () 2021-09-02 19:17:33 +02:00
Marc Mueller 69e413ac1e
Update pylint to 2.10.1 ()
* Update pylint to 2.10.0

* useless-suppression

* Consider-using-tuple

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Use dict.items()

* Add pylint disable

* Use pylint 2.10.1

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-21 10:41:23 +02:00
Andrew55529 09947d13a8
Fix problem with telegram_bot () 2021-07-29 18:31:32 +02:00
Marc Mueller f6b162bc39
Add pylint CodeStyle extension () 2021-07-19 06:57:06 -07:00
Farzad Noorian fbf85fd86b
Add OAuth 2.0 Bearer Token authentication to send_file for telegram_bot () 2021-06-28 20:43:23 +02:00
Nikolai 52e7d57533
Processing of messages from channel by telegram_bot ()
* Processing of messages from channel by telegram_bot

* formatted using Black

* refactor

* check allowed chat
2021-05-31 16:35:49 +02:00
tkdrob 028a07d86f
Wrap up selectors ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob d37a3cded0
Add targets and selectors for services (S-T) () 2021-05-14 22:30:41 -07:00
Marc Mueller f1d48ddfe3
Update pylint to 2.8.0 () 2021-04-24 14:39:24 -10:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest () 2021-04-15 10:21:38 +02:00
Marc Mueller 8e2b5b36b5
Bump pyupgrade to 2.12.0 () 2021-04-09 09:58:27 -07:00
J. Nick Koston c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Marc Mueller 16dcbf1467
Update pylint () 2021-02-28 22:09:01 -10:00
Olivér Falvai 6ffa3c18b2
Upgrade Telegram lib, refactor component for breaking changes ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-17 21:09:58 +01:00
Tobias Perschon 266f82ac76
Add send animation service to telegram ()
* added telegram sendAnimation api call

Signed-off-by: Tobias Perschon <tobias@perschon.at>

* more accurate service descriptions

Signed-off-by: Tobias Perschon <tobias@perschon.at>

* added 3rd parse_mode to description
2020-12-15 15:20:08 +01:00
Vladimir Dronnikov a4b1990487
Add telegram_bot.send_voice service ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-12-02 20:44:02 +01:00
Wictor 5fa00244da
Allow members of allowed groups to talk to telegram_bot () 2020-12-02 19:25:35 +01:00
Nikolai a396f8f76f
Add telegram_sent event ()
Co-authored-by: Heine Furubotten <hfurubotten@users.noreply.github.com>
2020-10-29 17:55:25 -05:00
Franck Nijhof 0e98bc5ea2
Skip template result parsing in several places ()
* Skip template result parsing in several places

* Adjust alert integration

* Adjust Alexa integration

* Adjust apns integration

* Adjust arest integration

* Adjust dialogflow integration

* Adjust generic camera integration

* Adjust imap email content  integration

* Adjust InfluxDB integration

* Adjust intent integration

* Adjust logbook integration

* Adjust HP ILO integration

* Adjust manual alarm control panel integration

* Adjust manual mqtt alarm control panel integration

* Adjust minio integration

* Adjust mqtt integration

* Adjust notify integration

* Adjust persistent notification integration

* Adjust rest integration

* Adjust rss feed template integration

* Adjust slack integration

* Adjust Xiaomi integration

* Adjust TCP integration

* Adjust Telegram Bot integration

* Bump CI cache version

* Revert "Bump CI cache version"

This reverts commit 875efe58cf.

* Adjust demo tests
2020-10-26 19:29:10 +01:00
J. Nick Koston 9c719beded
Update telegram_bot to use async_add_executor_job () 2020-10-16 13:29:28 +02:00
Nikolai 27c3ce16c3
Fix spelling in telegram_bot services () 2020-10-04 22:52:02 +02:00
Franck Nijhof cc4ebc925c
Improve X-Forwarded-* request headers handling ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-11 22:57:50 +02:00
Franck Nijhof 53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
Franck Nijhof e3e3a113e9
async_get_url -> get_url () 2020-05-08 21:53:28 +02:00
Franck Nijhof 2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
Franck Nijhof 39336d3ea3
Add prettier (in pre-commit and CI) ()
* Add prettier (in pre-commit and CI)

* Make all file prettier

* Change order

* Add to Azure Pipelines

* Fix a YAML file prettier caught as invalid

* Remove flow mapping using curly braces from all YAML service files
2020-04-05 17:27:16 +02:00
Konsts 114d48ed8b
Add timeout attribute for send files ()
* Add timeout attribute for send files

* Remove dublicate

Remove attribute dublicate in BASE_SERVICE_SCHEMA

* Remove duplicate

return attribute to BASE_SERVICE_SCHEMA and remove from SERVICE_SCHEMA_SEND_FILE

* Add timeout parameter description

Add timeout parameter description for "send message" and "send location"
2020-02-03 21:23:58 +01:00
Franck Nijhof a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Sérgio 5ad209c6fd Handle telegram event commands with args ()
* Handle telegram event commands with args

* Parse message regargless of command

* Lint

* Use multiple assignment
2020-01-03 08:22:14 -05:00
Ville Skyttä e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Bas Nijholt de915e1bf0 Sort imports according to PEP8 for components starting with "T" () 2019-12-09 14:41:48 +01:00
Paulus Schoutsen a050d54847 Make hassfest stricter ()
* Make hassfest stricter

* Update manifest.json
2019-12-05 10:15:28 +01:00
Luca Angemi cae802f7ee Include telegram_bot message id for all messages ()
* Include telegram_bot message id for all messages

* Update __init__.py
2019-12-03 12:51:45 -08:00
Ville Skyttä 99c7608fb4 Lint config cleanups ()
* Remove bunch of unneeded lint exclusions

* Use symbolic names instead of identifiers in pylint disables

* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Nikolay Vasilchuk abbf6595bb Fix () 2019-10-31 12:07:07 -07:00
Quentame bd0403c65e Move imports in telegram_bot component () 2019-10-17 17:19:34 -07:00
Franck Nijhof c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Franck Nijhof ef0e9431b6 Use literal string interpolation in integrations T-W (f-strings) () 2019-09-03 21:12:51 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Tobias Perschon 3a91c8f285 updated telegram trusted IPs ()
updated telegram trusted IPs (Source: https://core.telegram.org/bots/webhooks)
2019-07-29 14:51:05 -05:00
Max 7331eb1f71 Allow removing Telegram reply keyboard ()
*  Allow removing telegram reply keyboard by setting `keyboard` to an empty list

* Telegram keyboard: [] clearing in services.yaml
2019-05-02 15:14:40 -04:00
Andrey "Limych" Khrolenok 2e57d48191 Adding Telegram bot leave_chat() service ()
* Adding leave_chat() service

* Fix indent
2019-04-17 10:15:33 -07:00
Nikolay Vasilchuk 7b1cbeaf80 Fix verify_ssl configuration ()
Fix verify_ssl configuration
2019-04-16 11:55:12 -07:00
Diogo Gomes 51508d69ad Bandage telegram bot ()
* Bandage

* lint

* move everything into __init__.py

* fix lint
2019-04-12 14:28:59 -07:00