Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Global Variables - Remove Key
- description: >-
- Fjerner en specifik nøgle/værdi fra en tabel (dictionary) gemt i
- sensor.variables. Modtager 'table_name' og 'key'.
- icon: mdi:table-remove
- mode: single
- fields:
- table_name:
- name: Tabelnavn
- description: Navnet på den nestede tabel (f.eks. SPIES_AIRPORTS).
- example: SPIES_AIRPORTS
- required: true
- selector:
- text:
- multiline: false
- key:
- name: Nøgle til fjernelse
- description: Nøglen der skal fjernes fra tabellen (f.eks. Aalborg).
- example: Aalborg
- required: true
- selector:
- text:
- multiline: false
- sequence:
- - variables:
- existing_data: "{{ state_attr('sensor.variables', 'variables') }}"
- table: >-
- {% set raw_table = existing_data.get(table_name, {}) %} {{ raw_table if
- raw_table is mapping else {} }}
- updated_table: "{{ dict(table.items() | rejectattr('0', 'eq', key)) }}"
- - event: set_variable
- event_data:
- key: "{{ table_name }}"
- value: "{{ updated_table }}"
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=thezpyfktx
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment