Skip to content

Commit f5dd12a

Browse files
committed
Remove window.localStorage
1 parent 1c43712 commit f5dd12a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/volto-home-assistant/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
<!-- towncrier release notes start -->
1515

16-
## 2.1.0 (2025-03-30)
16+
## 2.1.0 (2025-03-31)
1717

18+
- Remove window.localStorage [fosten]
1819
- Update CHANGELOG.md [fosten]
1920
- Bump package.json versions to 2.1.0 [fosten]
2021
- Bump Volto from 18.0.0-alpha.47 to 18.10.1 [fosten]

packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ import { Table } from 'semantic-ui-react';
1717
const View = (props) => {
1818
const [response, setState] = useState({});
1919
async function myResponse() {
20-
window.localStorage.setItem(
21-
`token`,
22-
JSON.stringify(window.env.RAZZLE_HOMEASSISTANT_ACCESS_TOKEN),
23-
);
2420
try {
2521
const response = await axios.get(
2622
`${window.env.RAZZLE_HOMEASSISTANT_API_HOST}:${window.env.RAZZLE_HOMEASSISTANT_API_PORT}/api/states`,
@@ -32,7 +28,6 @@ const View = (props) => {
3228
},
3329
);
3430
setState(response);
35-
window.localStorage.setItem(`response`, JSON.stringify(response));
3631
} catch (err) {
3732
// eslint-disable-next-line no-console
3833
console.log(err);

0 commit comments

Comments
 (0)